Skip to content
Snippets Groups Projects
Commit 20bef2dc authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Merge branch 'Modulateurs-structures-2' into 'v8'

Modulateurs structures 2

See merge request !22
parents 9a8fd007 23429782
No related branches found
No related tags found
2 merge requests!23V8,!22Modulateurs structures 2
File mode changed from 100755 to 100644
......@@ -51,14 +51,6 @@ class CentreCoutStructureSaisieForm extends AbstractForm
->setEmptyOption("(Aucun)")
->setValueOptions(\UnicaenApp\Util::collectionAsOptions($this->getStructures()));
$this->add([
'name' => 'unite-budgetaire',
'options' => [
'label' => "Unité budgétaire",
],
'type' => 'Text',
]);
$this->add(new Csrf('security'));
$this->add([
'name' => 'submit',
......@@ -133,7 +125,6 @@ class CentreCoutStructureHydrator implements HydratorInterface
$object->setStructure($this->getServiceStructure()->get($data['structure']));
}
$object->setCentreCout($this->getServiceCentreCout()->get($data['centre-cout']));
$object->setUniteBudgetaire($data['unite-budgetaire']);
return $object;
}
......@@ -153,7 +144,6 @@ class CentreCoutStructureHydrator implements HydratorInterface
'id' => $object->getId(),
'structure' => ($s = $object->getStructure()) ? $s->getId() : null,
'centre-cout' => $object->getCentreCout()->getId(),
'unite-budgetaire' => $object->getUniteBudgetaire(),
];
return $data;
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment