Merge pull request #2150 from jitendra-webkul/1.0

Issue #2054 fixed
This commit is contained in:
Jitendra Singh 2020-01-27 13:34:14 +05:30 committed by GitHub
commit 0a2116a77c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class ProductBundleOptionProductRepository extends Repository
}
}
if (! $haveIsDefaulFlag)
if (! $haveIsDefaulFlag && $data['is_required'])
$data['products'][key($data['products'])]['is_default'] = 1;
}
}