[-] MO : Not correct display of "date_add" for the discounts
This commit is contained in:
@@ -131,7 +131,6 @@ if ($ids_discount = LoyaltyModule::getDiscountByIdCustomer((int)($cookie->id_cus
|
||||
foreach ($ids_discount AS $key => $discount)
|
||||
{
|
||||
$discounts[$key] = new Discount((int)$discount['id_discount'], (int)($cookie->id_lang));
|
||||
$discounts[$key]->date_add = $discount['date_add'];
|
||||
$discounts[$key]->orders = LoyaltyModule::getOrdersByIdDiscount((int)$discount['id_discount']);
|
||||
}
|
||||
}
|
||||
@@ -166,4 +165,4 @@ $smarty->assign(array(
|
||||
|
||||
echo Module::display(dirname(__FILE__).'/loyalty.php', 'loyalty.tpl');
|
||||
|
||||
include(dirname(__FILE__).'/../../footer.php');
|
||||
include(dirname(__FILE__).'/../../footer.php');
|
||||
|
||||
Reference in New Issue
Block a user