reverting changes, delete for product_attribute in product flat

This commit is contained in:
rahul shukla 2019-08-01 10:22:23 +05:30
parent 6f64de0f26
commit 9ba2357d7c
1 changed files with 5 additions and 1 deletions

View File

@ -103,7 +103,11 @@ class ProductFlat
*/
public function afterAttributeCreatedUpdated($attribute)
{
if (! $attribute->is_user_defined || ! $attribute->use_in_flat) {
if (! $attribute->is_user_defined) {
return false;
}
if (! $attribute->use_in_flat) {
$this->afterAttributeDeleted($attribute->id);
return false;
}