Skip to content

Commit

Permalink
MAGETWO-70134: Support null value for custom attributes. #9314
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Korshenko authored Jun 26, 2017
2 parents e0122b2 + 8a875cd commit ee1628a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ private function processCustomAttribute($customAttribute)
throw new SerializationException(new Phrase('There is an empty custom attribute specified.'));
} elseif (!$customAttributeCode) {
throw new SerializationException(new Phrase('A custom attribute is specified without an attribute code.'));
} elseif (!isset($customAttribute[AttributeValue::VALUE])) {
} elseif (!array_key_exists(AttributeValue::VALUE, $customAttribute)) {
throw new SerializationException(
new Phrase('Value is not set for attribute code "' . $customAttributeCode . '"')
);
Expand Down

0 comments on commit ee1628a

Please sign in to comment.