Skip to content

Commit 9e3ca7b

Browse files
committed
Support null value for custom attributes.
1 parent 941a525 commit 9e3ca7b

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
@@ -260,7 +260,7 @@ private function processCustomAttribute($customAttribute)
260260
throw new SerializationException(new Phrase('There is an empty custom attribute specified.'));
261261
} elseif (!$customAttributeCode) {
262262
throw new SerializationException(new Phrase('A custom attribute is specified without an attribute code.'));
263-
} elseif (!isset($customAttribute[AttributeValue::VALUE])) {
263+
} elseif (!array_key_exists(AttributeValue::VALUE, $customAttribute)) {
264264
throw new SerializationException(
265265
new Phrase('Value is not set for attribute code "' . $customAttributeCode . '"')
266266
);

0 commit comments

Comments
 (0)