We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e0122b2 + 8a875cd commit ee1628aCopy full SHA for ee1628a
lib/internal/Magento/Framework/Webapi/ServiceInputProcessor.php
@@ -264,7 +264,7 @@ private function processCustomAttribute($customAttribute)
264
throw new SerializationException(new Phrase('There is an empty custom attribute specified.'));
265
} elseif (!$customAttributeCode) {
266
throw new SerializationException(new Phrase('A custom attribute is specified without an attribute code.'));
267
- } elseif (!isset($customAttribute[AttributeValue::VALUE])) {
+ } elseif (!array_key_exists(AttributeValue::VALUE, $customAttribute)) {
268
throw new SerializationException(
269
new Phrase('Value is not set for attribute code "' . $customAttributeCode . '"')
270
);
0 commit comments