[-] BO : getCartsRuleByCode should be retrocompatible

This commit is contained in:
gRoussac
2013-11-22 11:40:47 +01:00
parent f7d4dc979f
commit dd79348748
2 changed files with 4 additions and 4 deletions
@@ -595,7 +595,7 @@ class AdminCartRulesControllerCore extends AdminController
public function displayAjaxSearchCartRuleVouchers()
{
$found = false;
if ($vouchers = CartRule::getCartsRuleByCode(Tools::getValue('q'), (int)$this->context->language->id))
if ($vouchers = CartRule::getCartsRuleByCode(Tools::getValue('q'), (int)$this->context->language->id, true))
$found = true;
echo Tools::jsonEncode(array('found' => $found, 'vouchers' => $vouchers));
}