route check added for product flat update

This commit is contained in:
rahul shukla 2019-09-10 13:25:26 +05:30
parent 403a9dda4c
commit 14773bbfa8
1 changed files with 8 additions and 6 deletions

View File

@ -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
}
}
}
}
}