route update for product create command

This commit is contained in:
rahul shukla 2019-10-01 14:50:56 +05:30
parent b79d607113
commit 45ff0b5602
1 changed files with 3 additions and 1 deletions

View File

@ -285,7 +285,9 @@ class ProductFlat
$productFlat->save();
}
} else {
if (request()->route()->getName() == 'admin.catalog.products.update') {
$route = request()->route() ? request()->route()->getName() : "";
if ($route == 'admin.catalog.products.update') {
$productFlat = $this->productFlatRepository->findOneWhere([
'product_id' => $product->id,
'channel' => $channel->code,