Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3883 → Rev 3884

/trunk/jrest/bibliotheque/GestionChampsEtendus2.php
135,7 → 135,7
* @param ChampEtendu $champ_etendu
* @return bool true si la modification a eu lieu
*/
public function modifierParProjet(Array $champs_etendu) {
public function modifierParProjet(Array $champs_etendus) {
if (! $champs_etendus) return TRUE; // le tableau ... vide à été inséré
// pour chaque champ étendu
foreach ($champs_etendus['ce'] as $num_champ => $champ_etendu) {
/trunk/jrest/services/CelWidgetManager.php
114,11 → 114,11
public function updateElement($uid,$params) {
$retour = "";
if (isset($params['projet']) && isset($params['langue'])) {
if (isset($requeteDonnees['champs-supp'])) {
if (isset($params['champs-supp'])) {
$gestionchamps = new GestionChampsEtendus2($this->config);
$champs = $this->traiterCorrespondanceChampsEtendusInterfaceBD($requeteDonnees); //var_dump($champs);exit;
$champs = $this->traiterCorrespondanceChampsEtendusInterfaceBD($params); //var_dump($champs);exit;
$liste = $gestionchamps->modifierParProjet($champs);
unset($requeteDonnees['champs-supp']);
unset($params['champs-supp']);
}
$manager = new GestionWidget($this->config);
$params['est_type'] = (isset($params['est_type']) && $params['est_type']== "on") ? 1 : 0;