From 25e55a11d5612deb60520b058f98d92c6fbfe2a3 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 12 Dec 2012 15:22:04 +0000 Subject: [PATCH] issue# 0001456 : Suppression des codePays3 = NULL --- library/WsScore/Catalog/v0.1/Catalog.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/WsScore/Catalog/v0.1/Catalog.php b/library/WsScore/Catalog/v0.1/Catalog.php index a6fd5fa4..70c09680 100644 --- a/library/WsScore/Catalog/v0.1/Catalog.php +++ b/library/WsScore/Catalog/v0.1/Catalog.php @@ -88,6 +88,8 @@ class Catalog extends WsScore $sql = $countryM->select()->from($countryM, $columnsDisplay); if ( $id!==null ) { $sql->where('codPays3=?', $id); + } else { + $sql->where('codPays3 IS NOT NULL'); } $result = $countryM->fetchAll($sql); } catch (Zend_Db_Adapter_Exception $e) { @@ -106,7 +108,7 @@ class Catalog extends WsScore $tabPays[$item->codPays3] = $item->toArray(); } } - + return json_encode($tabPays); }