/trunk/services/modules/0.1/isfan/CommunNomsTaxons.php |
---|
375,7 → 375,6 |
protected function ajouterChampsPersonnalises($champs, $reponse_id) { |
$champs_a_libeller = array('nom_retenu', 'rang', 'basionyme', 'hybride', 'hybride.parent_01', |
'hybride.parent_02', 'presence', 'tax_sup', 'statut_origine', 'statut_culture', 'statut_introduction'); |
$champs_forces = array('rang'); // même s'ils sont dans "à libeller", on les prend quand même en brut, en plus |
if (! is_null($champs) && is_array($champs) && count($champs) > 0) { |
foreach ($champs as $champ) { |
if ($this->verifierValiditeChamp($champ)) { |
388,11 → 387,6 |
$champ = $this->trouverChampBddCorrespondant($champ); |
$this->table_retour[$champ] = (isset($reponse_id[$champ])) ? $reponse_id[$champ] : null; |
} |
// champs bruts en plus, ajouté pour obtenir le rang, mais retourne rang.code avec du kk dedans :-/ |
if (in_array($champ, $champs_forces)) { |
$champ = $this->trouverChampBddCorrespondant($champ); |
$this->table_retour[$champ] = (isset($reponse_id[$champ])) ? $reponse_id[$champ] : null; |
} |
} |
} |
} |
/trunk/services/modules/0.1/bdtxa/CommunNomsTaxons.php |
---|
375,7 → 375,6 |
protected function ajouterChampsPersonnalises($champs, $reponse_id) { |
$champs_a_libeller = array('nom_retenu', 'rang', 'basionyme', 'hybride', 'hybride.parent_01', |
'hybride.parent_02', 'presence', 'tax_sup', 'statut_origine', 'statut_culture', 'statut_introduction'); |
$champs_forces = array('rang'); // même s'ils sont dans "à libeller", on les prend quand même en brut, en plus |
if (! is_null($champs) && is_array($champs) && count($champs) > 0) { |
foreach ($champs as $champ) { |
if ($this->verifierValiditeChamp($champ)) { |
388,11 → 387,6 |
$champ = $this->trouverChampBddCorrespondant($champ); |
$this->table_retour[$champ] = (isset($reponse_id[$champ])) ? $reponse_id[$champ] : null; |
} |
// champs bruts en plus, ajouté pour obtenir le rang, mais retourne rang.code avec du kk dedans :-/ |
if (in_array($champ, $champs_forces)) { |
$champ = $this->trouverChampBddCorrespondant($champ); |
$this->table_retour[$champ] = (isset($reponse_id[$champ])) ? $reponse_id[$champ] : null; |
} |
} |
} |
} |
/trunk/services/modules/0.1/bdtfx/CommunNomsTaxons.php |
---|
389,7 → 389,6 |
protected function ajouterChampsPersonnalises($champs, $reponse_id) { |
$champs_a_libeller = array('nom_retenu', 'rang', 'basionyme', 'hybride', 'hybride.parent_01', |
'hybride.parent_02', 'presence', 'tax_sup', 'statut_origine', 'statut_culture', 'statut_introduction'); |
$champs_forces = array('rang'); // même s'ils sont dans "à libeller", on les prend quand même en brut, en plus |
if (! is_null($champs) && is_array($champs) && count($champs) > 0) { |
foreach ($champs as $champ) { |
if ($this->verifierValiditeChamp($champ)) { |
402,11 → 401,6 |
$champ = $this->trouverChampBddCorrespondant($champ); |
$this->table_retour[$champ] = (isset($reponse_id[$champ])) ? $reponse_id[$champ] : null; |
} |
// champs bruts en plus, ajouté pour obtenir le rang, mais retourne rang.code avec du kk dedans :-/ |
if (in_array($champ, $champs_forces)) { |
$champ = $this->trouverChampBddCorrespondant($champ); |
$this->table_retour[$champ] = (isset($reponse_id[$champ])) ? $reponse_id[$champ] : null; |
} |
} |
} |
} |