Skip to content

Commit

Permalink
EZP-30586: Adding of Selection FieldType without configured options l…
Browse files Browse the repository at this point in the history
…eads to an 500 error
  • Loading branch information
kmadejski committed May 23, 2019
1 parent 4ebe8f4 commit 5e8ed8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function transform($value)
public function reverseTransform($value)
{
if (!$value) {
return null;
return [$this->languageCode => $value];
}

return array_merge($this->data->fieldSettings['multilingualOptions'], [$this->languageCode => $value]);
Expand Down

0 comments on commit 5e8ed8e

Please # to comment.