Merge pull request #5193 from radiantly/checkbox

Allow unchecking all checkboxes in an attribute
This commit is contained in:
Glenn Hermans 2021-10-04 21:45:06 +02:00 committed by GitHub
commit e3626e0ef3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ class ProductController extends Controller
if (count($customAttributes)) {
foreach ($customAttributes as $attribute) {
if ($attribute->type == 'multiselect') {
if ($attribute->type == 'multiselect' || $attribute->type == 'checkbox') {
array_push($multiselectAttributeCodes, $attribute->code);
}
}