Merge pull request #1572 from prashant-webkul/development

Generate product command bug fix
This commit is contained in:
Jitendra Singh 2019-10-10 12:39:03 +05:30 committed by GitHub
commit 62e8826d17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -197,7 +197,9 @@ abstract class AbstractType
}
}
if (request()->route()->getName() != 'admin.catalog.products.massupdate') {
$route = request()->route() ? request()->route()->getName() : "";
if ($route != 'admin.catalog.products.massupdate') {
if (isset($data['categories']))
$product->categories()->sync($data['categories']);