Skip to content

Commit

Permalink
Use case insensitive comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
sprankhub authored Apr 13, 2021
1 parent 66f1688 commit 7ee9980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin/CreateMissingAttributeOptionPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function findAttributeOptionByLabel($attributeCode, $label)
{
$attributeOptionList = $this->attributeOptionManagementInterface->getItems($attributeCode);
foreach ($attributeOptionList as $attributeOptionInterface) {
if (strcmp($attributeOptionInterface->getLabel(), $label) === 0) {
if (strcasecmp($attributeOptionInterface->getLabel(), $label) === 0) {
return $attributeOptionInterface;
}
}
Expand Down

0 comments on commit 7ee9980

Please sign in to comment.