Correction recherche enfant
This commit is contained in:
parent
12a1930b1c
commit
c188a96f09
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user