route update for product create command
This commit is contained in:
parent
b79d607113
commit
45ff0b5602
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue