reverting changes, delete for product_attribute in product flat
This commit is contained in:
parent
6f64de0f26
commit
9ba2357d7c
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue