Skip to content

Commit b8dba9b

Browse files
ENGCOM-2052: [Backport] Naming collision in Javascript ui registry (backend) #15289
- Merge Pull Request #15289 from VitaliyBoyko/magento2:Naming-collision-in-Javascript-ui-registry-(backend)-to-2.2 - Merged commits: 1. e9b144f
2 parents 76dad58 + e9b144f commit b8dba9b

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/variations

1 file changed

+2
-2
lines changed

app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/variations/variations.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,12 @@ define([
276276
var element;
277277

278278
_.each(this.disabledAttributes, function (attribute) {
279-
registry.get('index = ' + attribute).disabled(false);
279+
registry.get('code = ' + attribute, 'index = ' + attribute).disabled(false);
280280
});
281281
this.disabledAttributes = [];
282282

283283
_.each(attributes, function (attribute) {
284-
element = registry.get('index = ' + attribute.code);
284+
element = registry.get('code = ' + attribute.code, 'index = ' + attribute.code);
285285
if (!_.isUndefined(element)) {
286286
element.disabled(true);
287287
this.disabledAttributes.push(attribute.code);

0 commit comments

Comments
 (0)