Skip to content

Commit 485ae55

Browse files
Added default value for source
1 parent 639c881 commit 485ae55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/com/magento/idea/magento2plugin/actions/generation/data/ProductEntityData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class ProductEntityData implements EavEntityDataInterface {
88
private String type;
99
private String label;
1010
private String input;
11-
private String source;
11+
private String source = null;
1212
private String scope;
1313
private boolean isRequired = false;
1414
private boolean isUsedInGrid = false;

src/com/magento/idea/magento2plugin/actions/generation/generator/util/eav/ProductAttributeMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private Map<String, String> getMappedAttributes(ProductEntityData eavEntityData)
3939
mappedAttributes.put(EavAttributes.label.name(), wrapStringValueForTemplate(eavEntityData.getLabel()));
4040
mappedAttributes.put(EavAttributes.input.name(), wrapStringValueForTemplate(eavEntityData.getInput()));
4141

42-
mappedAttributes.put(EavAttributes.source.name(), wrapStringValueForTemplate(eavEntityData.getSource()));
42+
mappedAttributes.put(EavAttributes.source.name(), eavEntityData.getSource());
4343
mappedAttributes.put(EavAttributes.required.name(), Boolean.toString(eavEntityData.isRequired()));
4444
mappedAttributes.put(EavAttributes.sort_order.name(), Integer.toString(eavEntityData.getSortOrder()));
4545
mappedAttributes.put(EavAttributes.global.name(), eavEntityData.getScope());

0 commit comments

Comments
 (0)