Skip to content

Commit a622f2a

Browse files
author
Vitaliy
authored
Merge pull request #571 from Iamwade/fixed-namespace-in-controller
Fixed namespace in controller
2 parents 0889543 + 24de52b commit a622f2a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/com/magento/idea/magento2plugin/actions/generation/dialog/NewControllerDialog.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,10 @@ private String getNamespace() {
241241
File.separator,
242242
Package.fqnSeparator
243243
);
244-
final String controllerPart = Package.fqnSeparator + getControllerName();
244+
final String controllerPart = getControllerName().replace(
245+
File.separator,
246+
Package.fqnSeparator
247+
);
245248

246249
return String.format(
247250
"%s%s%s%s%s%s",

0 commit comments

Comments
 (0)