Skip to content

Commit 3c48ed3

Browse files
authored
Merge pull request #39 from firegento/sprankhub-patch-1
Use case insensitive comparison
2 parents 66f1688 + 7ee9980 commit 3c48ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugin/CreateMissingAttributeOptionPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function findAttributeOptionByLabel($attributeCode, $label)
114114
{
115115
$attributeOptionList = $this->attributeOptionManagementInterface->getItems($attributeCode);
116116
foreach ($attributeOptionList as $attributeOptionInterface) {
117-
if (strcmp($attributeOptionInterface->getLabel(), $label) === 0) {
117+
if (strcasecmp($attributeOptionInterface->getLabel(), $label) === 0) {
118118
return $attributeOptionInterface;
119119
}
120120
}

0 commit comments

Comments
 (0)