Commit b7ba6b8b authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

divers

parent c21b5c03
......@@ -39,15 +39,14 @@ class StatutController extends AbstractController
public function saisieAction()
{
try {
/** @var Statut $statut */
$statut = $this->getEvent()->getParam('statut');
$statut = $this->getEvent()->getParam('statut');
$form = $this->getFormStatutSaisie();
$champsAutres = $this->getServiceDossierAutre()->getList();
if (empty($statut)) {
$title = 'Création d\'un nouveau statut d\'intervenant';
$statut = $this->getServiceStatut()->newEntity();
$statut->setOrdre($this->getServiceStatut()->fetchMaxOrdre() + 1);
} else {
$title = 'Édition d\'un statut d\'intervenant';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment