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

Correction bug : on ne sync plus un EP de force si c'est pour le détruire

parent ccd250c2
Branches
Tags
No related merge requests found
......@@ -233,6 +233,7 @@ class ElementPedagogiqueController extends AbstractController
$saisie = $this->params()->fromPost('vhes');
$tis = $element->getTypesInterventionPossibles();
$vhes = [];
foreach ($tis as $typeIntervention) {
if (!isset($existsVhes[$typeIntervention->getId()])) {
$vhe = $this->getServiceVolumeHoraireEns()->newEntity($element, $typeIntervention);
......
......@@ -434,7 +434,7 @@ where rang = 1
DECLARE
element_id NUMERIC;
BEGIN
unicaen_import.synchronisation('ELEMENT_PEDAGOGIQUE', 'WHERE code =''' || " . $c->quote($code) . " || ''' AND annee_id = ' || " . $annee . ");
unicaen_import.synchronisation('ELEMENT_PEDAGOGIQUE', 'WHERE code =''' || " . $c->quote($code) . " || ''' AND import_action <> ''delete'' AND annee_id = ' || " . $annee . ");
BEGIN
SELECT id INTO element_id FROM element_pedagogique ep WHERE code = " . $c->quote($code) . " AND ep.annee_id = " . $annee . " AND histo_destruction IS NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment