Subversion Repositories Applications.referentiel

Compare Revisions

Ignore whitespace Rev 56 → Rev 57

/trunk/interfaces/controleurs/Versionnage.php
90,6 → 90,7
}
$donnees['messages'] = $this->getMessages();
$this->traiterEsperluette($donnees);
$this->setSortie(self::RENDU_CORPS, $this->getVue('form_version', $donnees), false);
$this->construireMenu($this->referentiel);
$this->construireFilAriane($this->referentiel);
99,7 → 100,8
$version = array();
foreach ($this->version as $champ) {
if (isset($_POST[$champ])) {
$version[$champ] = stripslashes($_POST[$champ]);
$version[$champ] = $this->supprimerSlash($_POST[$champ]);
$version[$champ] = $this->traiterCasesACocher($version[$champ]);
} else {
$version[$champ] = $this->getValeurParDefaut($champ);
108,6 → 110,13
return $version;
}
private function traiterCasesACocher($valeur_post) {
if (is_array($valeur_post)) {
$valeur_post = array_flip($valeur_post);
}
return $valeur_post;
}
public function getValeurParDefaut($champ) {
$valeur = '';
if ('date_prod' == $champ) {