Skip to content

Commit 1b1ec3b

Browse files
MAGETWO-58896: Product Fields Auto-Generation does not work as expected
- Code review fixes
1 parent 3e94807 commit 1b1ec3b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/code/Magento/Catalog/view/adminhtml/web/js/components/import-handler.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ define([
5757
var string = this.mask || '',
5858
nonEmptyValueFlag = false;
5959

60-
if (!this.allowImport) {
61-
return;
62-
}
63-
6460
if (placeholder) {
6561
this.values[placeholder] = component.getPreview() || '';
6662
}
6763

64+
if (!this.allowImport) {
65+
return;
66+
}
67+
6868
_.each(this.values, function (propertyValue, propertyName) {
6969
string = string.replace('{{' + propertyName + '}}', propertyValue);
7070
nonEmptyValueFlag = nonEmptyValueFlag || !!propertyValue;
@@ -104,7 +104,7 @@ define([
104104
this.allowImport = true;
105105

106106
if (this.autoImportIfEmpty) {
107-
this.updateValue(false, null);
107+
this.updateValue(null, null);
108108
}
109109
} else {
110110
this.allowImport = false;

0 commit comments

Comments
 (0)