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

Le grade devient modifiable pour les intervenants dont l'année est < à l'année d'import

parent 23c5b154
......@@ -461,6 +461,9 @@ class EditionForm extends AbstractForm
} else {
$noImport = ['syncStatut', 'syncStructure', 'statut', 'structure', 'intervenant-edition-login', 'intervenant-edition-password'];
if ($object->getAnnee()->getId() < $this->getServiceContext()->getAnneeImport()->getId()) {
$noImport[] = 'grade';
foreach ($this->getElements() as $element) {
if (!in_array($element->getName(), $noImport)) {
Markdown is supported
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