Skip to content

Commit

Permalink
MAGETWO-56964: [Backport] [GitHub] Validate attribute values #4881
Browse files Browse the repository at this point in the history
fixed CR comments
  • Loading branch information
Sergey Shvets committed Sep 28, 2016
1 parent 156c2d8 commit b91b2a9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,12 @@ private function setMessageToResponse($response, $messages)
/**
* @param DataObject $response
* @param array|null $options
* @return $this
*/
private function checkUniqueOption(DataObject $response, array $options = null)
{
if (is_array($options) and !$this->isUniqueAdminValues($options['value'], $options['delete'])) {
if (is_array($options) && !$this->isUniqueAdminValues($options['value'], $options['delete'])) {
$this->setMessageToResponse($response, [__('The value of Admin must be unique.')]);
$response->setError(true);
}
return $this;
}
}

0 comments on commit b91b2a9

Please sign in to comment.