// Fixed #PSTEST-953
This commit is contained in:
1 parent
d440e74d42
commit
c4bb0c2a14
1 file changed
+1
@@ -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.')' : '').'
|
||||
WHERE 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 : '').'
|
||||
ORDER BY name ASC');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user