Correction recherche enfant

This commit is contained in:
Michael RICOIS 2012-05-15 15:33:26 +00:00
parent 12a1930b1c
commit c188a96f09

View File

@ -721,9 +721,11 @@ class Ciblage
//Only code with a length between 1 and 3
if ( strlen($item)<4 ) {
$sql = $fjM->select()->from($fjM, array('fjCode'))
->where('fjCode LIKE "'.$fjcode.'%"')
->where('fjCode LIKE "'.$item.'%"')
->where('LENGTH(fjCode)=4');
Zend_Registry::get('firebug')->info($sql->__toString());
$result = $fjM->fetchAll($sql)->toArray();
if ( count($result)>0 ) {
foreach ( $result as $i ) {