Skip to content

Commit ee1628a

Browse files
author
Oleksii Korshenko
authored
MAGETWO-70134: Support null value for custom attributes. #9314
2 parents e0122b2 + 8a875cd commit ee1628a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Webapi/ServiceInputProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ private function processCustomAttribute($customAttribute)
264264
throw new SerializationException(new Phrase('There is an empty custom attribute specified.'));
265265
} elseif (!$customAttributeCode) {
266266
throw new SerializationException(new Phrase('A custom attribute is specified without an attribute code.'));
267-
} elseif (!isset($customAttribute[AttributeValue::VALUE])) {
267+
} elseif (!array_key_exists(AttributeValue::VALUE, $customAttribute)) {
268268
throw new SerializationException(
269269
new Phrase('Value is not set for attribute code "' . $customAttributeCode . '"')
270270
);

0 commit comments

Comments
 (0)