Merge pull request #1989 from Haendlerbund/bugfix-types-having-variants-pr-1798

Bugfix: Exception while applying catalog rule
This commit is contained in:
Jitendra Singh 2020-01-10 13:20:59 +05:30 committed by GitHub
commit da829718a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ class ProductType extends AbstractProduct
*/
public static function getAllTypesHavingVariants(): array
{
$havingVariants = [];
foreach (config('product_types') as $type) {
if (self::hasVariants($type['key'])) {
array_push($havingVariants, $type['key']);