Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 2366 → Rev 2367

/trunk/widget/modules/saisie/Saisie.php
145,7 → 145,7
}
}
if ($this->projet != 'defaut' || $this->projetASquelette()) {
if ($this->projet == 'florileges' || $this->projet == 'sauvages') {
if ($this->projet == 'florileges' || $this->projet == 'sauvages' || $this->projet == 'arbres-tetards') {
$widget['donnees']['taxons'] = $this->recupererListeNoms();
} else {
$widget['donnees']['taxons'] = $this->recupererListeNomsSci();
289,11 → 289,11
// trop de champs injectés dans les infos espèces peut
// faire planter javascript
$champs_a_garder = array('id', 'nom_sci','nom_sci_complet',
'famille','nom_retenu.id', 'nom_retenu.libelle', 'num_taxonomique');
'famille','nom_retenu.id', 'nom_retenu.libelle', 'num_taxonomique');
$resultat = array();
if (isset($infos) && !empty($infos)) {
$infos = (array)$infos;
if(isset($infos['nom_sci']) && $infos['nom_sci'] != '') {
if (isset($infos['nom_sci']) && $infos['nom_sci'] != '') {
$resultat = array_intersect_key($infos, array_flip($champs_a_garder));
$resultat['retenu'] = ($infos['id'] == $infos['nom_retenu.id']) ? "true" : "false";
}