Generate product command bug fix

This commit is contained in:
Webkul 2019-10-10 12:33:20 +05:30
parent 3c9ef6ee45
commit 0cbf50b657
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']);