Merge branch 'develop' of gitlab.antadis.net:dev-antadis/bebeboutik into develop

This commit is contained in:
Christophe Latour 2017-10-19 17:16:24 +02:00
commit 45258c7e10

View File

@ -241,8 +241,7 @@ class LoyaltyModule extends ObjectModel
} elseif ($onlyDefault){ } elseif ($onlyDefault){
$query .= ' AND f.id_loyalty_state = '.(int)LoyaltyStateModule::getDefaultId(); $query .= ' AND f.id_loyalty_state = '.(int)LoyaltyStateModule::getDefaultId();
} }
$query .= 'AND oc.`id_order_state` != 8 $query .= ' AND oc.`id_order_state` != 8 GROUP BY f.id_loyalty '.
GROUP BY f.id_loyalty '.
($pagination ? 'LIMIT '.(((int)($page) - 1) * (int)($nb)).', '.(int)($nb) : ''); ($pagination ? 'LIMIT '.(((int)($page) - 1) * (int)($nb)).', '.(int)($nb) : '');
return Db::getInstance()->ExecuteS($query); return Db::getInstance()->ExecuteS($query);