issue# 0001456 : Suppression des codePays3 = NULL
This commit is contained in:
parent
da9d6c546d
commit
25e55a11d5
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user