21,6 → 21,7 |
class CelWidgetSaisie extends Cel { |
|
private $projet = null; |
private $projetId = null; |
private $projetTags = array(); |
private $tagsObs = null; |
private $tagsImg = null; |
41,6 → 42,7 |
} else if (array_key_exists('projet', $requeteDonnees)) { |
$this->debug[] = 'Projet : '.$requeteDonnees['projet']; |
$this->projet = $requeteDonnees['projet']; |
$this->projetId = $requeteDonnees['id_projet']; |
|
// Si c'est une obs Pl@ntNet |
if (! empty($requeteDonnees['tag-obs']) && strpos(strtolower($requeteDonnees['tag-obs']), 'plantnet') !== false) { |
143,10 → 145,8 |
} |
} |
$obsAAjouter['input_source'] = 'widget'; |
if (isset($obs['projet_id'])) { |
$obsAAjouter['project_id'] = $obs['projet_id']; |
$obsAAjouter['project'] = $obs['projet']; |
} |
$obsAAjouter['project_id'] = $this->projet_id; |
$obsAAjouter['project'] = $this->projet; |
if ($this->isFromPlantNet) { |
$obsAAjouter['input_source'] = 'PlantNet'; |
$obsAAjouter['plantnet_id'] = $obs['obs_id']; |