Subversion Repositories eFlore/Applications.cel

Rev

Rev 1906 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1906 Rev 2046
Line 47... Line 47...
47
		$more_data = CelTaxonNomFrom::NN2($this->bdd, @$pairs['nom_sel_nn'], @$pairs['nom_referentiel']);
47
		$more_data = CelTaxonNomFrom::NN2($this->bdd, @$pairs['nom_sel_nn'], @$pairs['nom_referentiel']);
48
		if($more_data) $pairs = array_merge($pairs, $more_data);
48
		if($more_data) $pairs = array_merge($pairs, $more_data);
Line 49... Line 49...
49
 
49
 
50
		$modification = $gestion_observation->modifierObservationPublique($utilisateur, $id, $pairs);
50
		$modification = $gestion_observation->modifierObservationPublique($utilisateur, $id, $pairs);
51
		if($modification) {
51
		if($modification) {
52
			// quel impact de ces valeurs de retour ?
52
			$gestion_mots_cles = new GestionMotsClesChemin($this->config, 'obs');
53
			if($kid = InventoryKeyWordList::getMotsClefId($utilisateur, 'obs', $obsKeywordDelete))
53
			// supression des éventuelles liaison de l'obs avec le mot clé contenu dans obsKeywordDelete
54
				InventoryKeyWordObsLink::unlinkKeyword($this->config, 'obs', explode(',', $id), $utilisateur, $kid);
54
			$supp_liaison_mot_cle = $gestion_mots_cles->supprimerLiaisonPourMotCleEtIdElementLie($obsKeywordDelete, $id, $utilisateur);
55
			/* if($kid = InventoryKeyWordList::getMotsClefId($utilisateur, 'images', $imgKeywordDelete))
-
 
56
			   InventoryKeyWordObsLink::unlinkKeyword($this->config, 'obs', explode(',', $id), $utilisateur, $kid); */
55
			// TODO : quel impact de la valeur de retour ?
57
			header("Content-Type: text/plain; charset=utf-8");
56
			header("Content-Type: text/plain; charset=utf-8");
58
			die("OK"); // attention, compatibilité avec ValiderDetermination.php de DEL !
57
			die("OK"); // attention, compatibilité avec ValiderDetermination.php de DEL !
59
		}
58
		}
60
		// cf TODO: n'arrivera pas tant que l'UPDATE ajoutera systématiquement date_modification = now()
59
		// cf TODO: n'arrivera pas tant que l'UPDATE ajoutera systématiquement date_modification = now()