Skip to content

Commit e6a0442

Browse files
authored
Merge pull request #1418 from algolia/update/MAGE-532
Custom attributes not indexed with value 0 when the Catalog Input Type for Store Owner is set to "Text field"
2 parents b3b50e3 + 36bd2e2 commit e6a0442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Helper/Entity/ProductHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ protected function addNonNullValue(
12291229
$value = $attributeResource->getFrontend()->getValue($product);
12301230
}
12311231

1232-
if ($value) {
1232+
if ($value !== null) {
12331233
$customData[$attribute['attribute']] = $value;
12341234
}
12351235

0 commit comments

Comments
 (0)