Skip to content

Commit 6d39eae

Browse files
Merge pull request #1230 from prabhat-webkul/fix-1222
Fixed #1222
2 parents 2e51db1 + 47bf7f5 commit 6d39eae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/Webkul/Attribute/src/Repositories/AttributeValueRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function save(array $data, $entityId)
6464
$data[$attribute->code] = isset($data[$attribute->code]) && $data[$attribute->code] ? 1 : 0;
6565
}
6666

67-
if (! isset($data[$attribute->code])) {
67+
if (! array_key_exists($attribute->code, $data)) {
6868
continue;
6969
}
7070

0 commit comments

Comments
 (0)