Skip to content

Commit

Permalink
return to equal comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
engcom-Echo committed Sep 23, 2020
1 parent d240573 commit 1bb4814
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getEnumValueFromField(string $enumName, string $fieldValue) : st
$mappedValues = $this->enumDataMapper->getMappedEnums($enumName);

foreach ($enumObject->getValues() as $enumItem) {
if (isset($mappedValues[$enumItem->getName()]) && $mappedValues[$enumItem->getName()] === $fieldValue) {
if (isset($mappedValues[$enumItem->getName()]) && $mappedValues[$enumItem->getName()] == $fieldValue) {
return $enumItem->getValue();
}
}
Expand Down

0 comments on commit 1bb4814

Please sign in to comment.