File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
src/com/magento/idea/magento2plugin/actions/generation/generator Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,14 @@ protected void fillAttributes(final Properties attributes) {
75
75
if (moduleXmlData .getSetupVersion () != null ) {
76
76
attributes .setProperty ("SETUP_VERSION" , moduleXmlData .getSetupVersion ());
77
77
}
78
- attributes .setProperty ("SEQUENCES" , this .getSequencesString (moduleXmlData .getModuleSequences ()));
78
+
79
+ String sequences = this .getSequencesString (moduleXmlData .getModuleSequences ());
80
+ if (!sequences .isEmpty ()) {
81
+ attributes .setProperty (
82
+ "SEQUENCES" ,
83
+ sequences
84
+ );
85
+ }
79
86
}
80
87
81
88
private String getSequencesString (final List sequences ) {
@@ -90,7 +97,8 @@ private String getSequencesString(final List sequences) {
90
97
91
98
for (Object o : dependencies ) {
92
99
String dependency = o .toString ();
93
- result = result .concat ("<module name=\" " + dependency + "\" />" );
100
+ String moduleSequence = "<module name=\" %s\" />" ;
101
+ result = result .concat (String .format (moduleSequence , dependency ));
94
102
}
95
103
96
104
return result ;
You can’t perform that action at this time.
0 commit comments