// Fixed #PSTEST-953
This commit is contained in:
@@ -871,6 +871,7 @@ class CartRuleCore extends ObjectModel
|
|||||||
'.($i18n ? 'LEFT JOIN `'._DB_PREFIX_.$type.'_lang` tl ON (t.id_'.$type.' = tl.id_'.$type.' AND tl.id_lang = '.(int)Context::getContext()->language->id.')' : '').'
|
'.($i18n ? 'LEFT JOIN `'._DB_PREFIX_.$type.'_lang` tl ON (t.id_'.$type.' = tl.id_'.$type.' AND tl.id_lang = '.(int)Context::getContext()->language->id.')' : '').'
|
||||||
WHERE 1
|
WHERE 1
|
||||||
'.($active_only ? 'AND t.active = 1' : '').'
|
'.($active_only ? 'AND t.active = 1' : '').'
|
||||||
|
'.(in_array($type, array('carrier', 'shop')) ? ' AND t.deleted = 0' : '').'
|
||||||
'.($type == 'cart_rule' ? 'AND t.id_cart_rule != '.(int)$this->id : '').'
|
'.($type == 'cart_rule' ? 'AND t.id_cart_rule != '.(int)$this->id : '').'
|
||||||
ORDER BY name ASC');
|
ORDER BY name ASC');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user