We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9374c8 commit 86f0c6bCopy full SHA for 86f0c6b
app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Validate.php
@@ -128,7 +128,7 @@ public function execute()
128
$attributeCode
129
);
130
131
- if (in_array($attributeCode, self::RESERVED_CODES)) {
+ if (in_array($attributeCode, self::RESERVED_CODES, true)) {
132
$message = __('Code (%1) is a reserved key and cannot be used as attribute code.', $attributeCode);
133
$this->setMessageToResponse($response, [$message]);
134
$response->setError(true);
0 commit comments