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

Merge branch 'b14' of https://git.unicaen.fr/open-source/OSE into b14

parents f2d6db09 b3cd2b28
No related branches found
No related tags found
No related merge requests found
# OSE 14.5 (alpha)
# OSE 14.5 (beta)
## Nouveautés
## Corrections de bugs
* Corrections coquilles dans l'administration.
* Correction bug sur la duplication d'un statut d'intervenant (ticket #29553)
* Lors de l'import de données, l'application ne plante plus si le connecteur INTERVENANT est désactivé
# OSE 14.4
......
......@@ -282,6 +282,7 @@ class StatutIntervenantSaisieForm extends AbstractForm
*/
public function getInputFilterSpecification()
{
return [
'libelle' => [
'required' => true,
......@@ -433,7 +434,9 @@ class StatutIntervenantHydrator implements HydratorInterface
$object->setMaximumHETD(FloatFromString::run($data['maximum-HETD']));
$object->setDepassementSDSHC($data['depassement-sdshc']);
$object->setChargesPatronales(FloatFromString::run($data['charges-patronales']) / 100);
//Uniquement si le statut intervenant existe déjà en base.
if(!empty($data['id']))
{
//Gestion de la durée de vie des agréments par statut d'intervenant
//On récupére les types d'agrement
$qb = $this->getServiceTypeAgrement()->finderByHistorique();
......@@ -477,6 +480,9 @@ class StatutIntervenantHydrator implements HydratorInterface
}
}
}
}
return $object;
}
......
......@@ -41,6 +41,7 @@ echo $this->form()->openTag($form); ?>
<div class="col-md-9">
<div class="row">
<div class="col-md-4">
<?= $this->formHidden($form->get('id')); ?>
<?= $this->formControlGroup($form->get('type-intervenant')); ?>
</div>
<div class="col-md-8">
......@@ -74,8 +75,12 @@ echo $this->form()->openTag($form); ?>
<?= $this->formControlGroup($form->get('depassement-sdshc')); ?>
<br/>
</div>
<!--Uniquement si le statut existe déjà en base (avec un id)-->
<?php if (empty($form->get('id')->getValue())): ?>
<div class="row temoins hidden" >
<?php else: ?>
<div class="row temoins" >
<?php endif; ?>
<fieldset>
<legend style="font-size: 14px;font-weight: 700;">Gestion des agréments pour le statut : </legend>
<table class="table table-bordered">
......@@ -100,7 +105,6 @@ echo $this->form()->openTag($form); ?>
</fieldset>
</div>
<div class="row">
<?= $this->formElement($form->get('security')); ?>
<?php if ($canEdit) echo $this->formSubmit($form->get('submit')); ?>
......@@ -140,7 +144,6 @@ echo $this->form()->openTag($form); ?>
<script type="text/javascript">
$(function () {
$("body").on("statut-intervenant-clone", function (event, data) {
console.log('toto');
window.location.reload();
});
$(".statut-libelle-<?= $form->get('id')->getValue() ?>").html("<?= $form->get('libelle')->getValue() ?>");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment