correction de confditions fausse
This commit is contained in:
parent
3bfc072fb2
commit
80522ddb4d
@ -37,7 +37,7 @@ Class Ciblage
|
||||
$this->$key($valeur);
|
||||
}
|
||||
} else {
|
||||
if($valeur != 'tous')
|
||||
if($valeur != 'tous' and $valeur != "")
|
||||
$this->$key($valeur);
|
||||
}
|
||||
}
|
||||
@ -105,11 +105,12 @@ Class Ciblage
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
echo $this->alpha;
|
||||
}
|
||||
|
||||
protected function setAlpha($name, $valeur)
|
||||
{
|
||||
$or = array('adr_cp', 'adr_dep', 'bilType');
|
||||
$or = array('bilType');
|
||||
$and = array('ape_entrep', 'ape_etab', 'age_entrep', 'age_etab', 'NaceEntrep', 'NaceEtab');
|
||||
|
||||
if(in_array($name, $or)) {
|
||||
@ -138,7 +139,7 @@ Class Ciblage
|
||||
}
|
||||
|
||||
protected function adr_cp($valeur) {
|
||||
$this->setAlpha('adr_cp', $valeur);
|
||||
$this->setFilter('adr_cp', $valeur);
|
||||
}
|
||||
|
||||
protected function adr_dep($valeur) {
|
||||
|
Loading…
Reference in New Issue
Block a user