Correction de big des sessions dans Fields...
This commit is contained in:
parent
8bc908a4da
commit
54eab39cb6
@ -582,7 +582,6 @@ Class Fields
|
||||
$json = $prefs->json;
|
||||
|
||||
foreach($this->fields as $name => $valeur) {
|
||||
$sessionValeur = $session->getCritere($name);
|
||||
if(!empty($json))
|
||||
{
|
||||
$prefs = json_decode($json);
|
||||
@ -595,7 +594,7 @@ Class Fields
|
||||
}
|
||||
}
|
||||
}
|
||||
if(in_array($name, $this->requeteSql) and (empty($sessionValeur))) {
|
||||
if(in_array($name, $this->requeteSql)) {
|
||||
$formeJuridiques = new Application_Model_Formejuridique();
|
||||
$sql = $formeJuridiques->select()->where('fjCode > 1000');
|
||||
$formeJuridiques = $formeJuridiques->fetchAll($sql)->toArray();
|
||||
@ -603,7 +602,7 @@ Class Fields
|
||||
foreach($formeJuridiques as $form) {
|
||||
$value[$form['fjCode']] = $form['fjLibelle'];
|
||||
}
|
||||
$this->fields['cj']['fields']['select']['value'] = $value;
|
||||
$this->fields[$name]['fields']['select']['value'] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user