Skip to content

Commit

Permalink
Merge pull request #39 from firegento/sprankhub-patch-1
Browse files Browse the repository at this point in the history
Use case insensitive comparison
  • Loading branch information
sprankhub authored Apr 13, 2021
2 parents 66f1688 + 7ee9980 commit 3c48ed3
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 3c48ed3

Please sign in to comment.