Skip to content

Commit 067f651

Browse files
Merge pull request #902 from Iamwade/590-the-plugin-inspection-does-not-work-correctly
590: The plugin inspection does not work correctly
2 parents 6607841 + ccef0d6 commit 067f651

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/com/magento/idea/magento2plugin/inspections/xml/PluginDeclarationInspection.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,11 @@ public void visitFile(final PsiFile file) {
119119
pluginIndex,
120120
file
121121
);
122+
final XmlAttribute pluginTypeAttribute =
123+
pluginTypeXmlTag.getAttribute(ModuleDiXml.TYPE_ATTR);
122124

123125
if (pluginTypeDisabledAttribute != null
126+
&& pluginTypeAttribute == null
124127
&& pluginTypeDisabledAttribute.getValue() != null
125128
&& pluginTypeDisabledAttribute.getValue().equals("true")
126129
&& !pluginTypeName.isEmpty()

0 commit comments

Comments
 (0)