Skip to content

Commit e16c0bf

Browse files
committed
MAGETWO-70634: Issues in customizable options section of add/edit product pages
1 parent a5f20fc commit e16c0bf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/code/Magento/Catalog/view/adminhtml/web/js/components/custom-options-price-type.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ define([
3535
* Update addbefore for price field. Change it to currency or % depends of price_type value.
3636
*/
3737
updateAddBeforeForPrice: function () {
38-
var addBefore, currentValue;
39-
var priceIndex = typeof this.imports.priceIndex == 'undefined' ? 'price' : this.imports.priceIndex;
40-
var priceName = this.parentName + '.' + priceIndex;
38+
var addBefore, currentValue, priceIndex, priceName;
39+
40+
priceIndex = typeof this.imports.priceIndex == 'undefined' ? 'price' : this.imports.priceIndex;
41+
priceName = this.parentName + '.' + priceIndex;
4142

4243
var uiPrice = uiRegistry.get(priceName);
4344

0 commit comments

Comments
 (0)