route check added for product flat update
This commit is contained in:
parent
403a9dda4c
commit
14773bbfa8
|
|
@ -285,6 +285,7 @@ class ProductFlat
|
|||
$productFlat->save();
|
||||
}
|
||||
} else {
|
||||
if (request()->route()->getName() == 'admin.catalog.products.update') {
|
||||
$productFlat = $this->productFlatRepository->findOneWhere([
|
||||
'product_id' => $product->id,
|
||||
'channel' => $channel->code,
|
||||
|
|
@ -296,4 +297,5 @@ class ProductFlat
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue