Skip to content

Commit f0a89eb

Browse files
committed
MAGETWO-52309: Configurable Product. Price should not be sent to server while saving.
- Fixed JavaScript static test
1 parent dac65e5 commit f0a89eb

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/components/price-configurable.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ define([
1212
return Abstract.extend({
1313
defaults: {
1414
listens: {
15-
isConfigurable: 'handlePriceVisibility'
15+
isConfigurable: 'handlePriceValue'
1616
},
1717
imports: {
1818
isConfigurable: '!ns = ${ $.ns }, index = configurable-matrix:isEmpty'
@@ -44,11 +44,16 @@ define([
4444
return this;
4545
},
4646

47-
handlePriceVisibility: function (isConfigurable) {
47+
/**
48+
* Disable and clear price if product type changed to configurable
49+
*
50+
* @param {String} isConfigurable
51+
*/
52+
handlePriceValue: function (isConfigurable) {
4853
if (isConfigurable) {
4954
this.disable();
5055
this.clear();
5156
}
5257
}
5358
});
54-
});
59+
});

0 commit comments

Comments
 (0)