Working : Coupon : fix loop

This commit is contained in:
gmorel
2013-09-17 23:09:55 +02:00
parent 3aa9c71e34
commit ce72a20074

View File

@@ -88,8 +88,8 @@ class Coupon extends BaseI18nLoop
$search->filterById($id, Criteria::IN);
}
if ($isEnabled != BooleanOrBothType::ANY) {
$search->filterByIsEnabled($isEnabled ? 1 : 0);
if (isset($isEnabled)) {
$search->filterByIsEnabled($isEnabled ? true : false);
}
// Perform search