Merge pull request #6416 from devansh-webkul/grouped-checked

Group Product Condition Fixed #6339
This commit is contained in:
Jitendra Singh 2022-05-12 10:02:25 +05:30 committed by GitHub
commit eb98d54816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -146,8 +146,8 @@ class Grouped extends AbstractType
return false; return false;
} }
if (ProductFlat::query()->select('id')->whereIn('product_id', $this->getChildrenIds())->where('status', 0)->first()) { if (ProductFlat::query()->select('id')->whereIn('product_id', $this->getChildrenIds())->where('status', 1)->first()) {
return false; return true;
} }
return true; return true;