issue# 0001456 : Suppression des codePays3 = NULL

This commit is contained in:
Michael RICOIS 2012-12-12 15:22:04 +00:00
parent da9d6c546d
commit 25e55a11d5

View File

@ -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);
}