From 1990ed86f367c6e64c2c5bb360b9d304278d6316 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Laurent=20L=C3=A9cluse?= <laurent.lecluse@unicaen.fr>
Date: Fri, 26 Jun 2020 10:28:40 +0200
Subject: [PATCH] =?UTF-8?q?C'est=20OseAppli=20qui=20supprime,=20pas=20le?=
 =?UTF-8?q?=20cr=C3=A9ateur=20de=20l'agr=C3=A9ment?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 admin/migration/AgrementStructure.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/admin/migration/AgrementStructure.php b/admin/migration/AgrementStructure.php
index b937e5b26b..bdea07bdfb 100644
--- a/admin/migration/AgrementStructure.php
+++ b/admin/migration/AgrementStructure.php
@@ -147,7 +147,7 @@ class AgrementStructure extends AbstractMigration
                                 AGREMENT
                               SET 
                                 HISTO_DESTRUCTION = TO_DATE('2020 - 01 - 01', 'YYYY - MM - DD'),
-                                HISTO_DESTRUCTEUR_ID = HISTO_CREATEUR_ID 
+                                HISTO_DESTRUCTEUR_ID = " . $this->manager->getOseAdmin()->getOseAppliId() . " 
                               WHERE ID = $agrementId";
                         $bdd->exec($sqlDelete);
                     }
-- 
GitLab