File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/com/magento/idea/magento2plugin/actions/generation/generator/util Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1717import java .util .Properties ;
1818
1919public final class FindOrCreateLayoutXml {
20+
2021 private final Project project ;
2122
2223 public FindOrCreateLayoutXml (final Project project ) {
@@ -61,9 +62,10 @@ public PsiFile execute(
6162 .findOrCreateSubdirectory (parentDirectory , fileDirectory );
6263 }
6364
64- LayoutXml layoutXml = new LayoutXml (routeId , controllerName , controllerActionName );
65- if ("" .equals (controllerName )) {
66- layoutXml = new LayoutXml (routeId );
65+ LayoutXml layoutXml = new LayoutXml (routeId , controllerName , controllerActionName );
66+
67+ if (controllerName .isEmpty ()) {
68+ layoutXml = new LayoutXml (routeId );
6769 }
6870 PsiFile layoutXmlFile = FileBasedIndexUtil .findModuleViewFile (
6971 layoutXml .getFileName (),
You can’t perform that action at this time.
0 commit comments