From ef1087fe314227ea775a2b9b50c1ab5bf455b74a Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Tue, 14 May 2019 17:53:54 +0200
Subject: [PATCH] FEAT #10476 TIME 0:30 V1 attachment edition with custom

---
 modules/templates/datasources/letterbox_attachment.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/templates/datasources/letterbox_attachment.php b/modules/templates/datasources/letterbox_attachment.php
index 0598e155187..fd1d309ffee 100755
--- a/modules/templates/datasources/letterbox_attachment.php
+++ b/modules/templates/datasources/letterbox_attachment.php
@@ -42,6 +42,9 @@ if (!empty($res_id)) {
     AND a.parent_entity_id = b.entity_id', array($doc['initiator']));
     $initiator = $stmt2->fetch(PDO::FETCH_ASSOC);
 
+    \SrcCore\models\DatabasePDO::reset();
+    new \SrcCore\models\DatabasePDO(['customId' => $_SESSION['custom_override_id']]);
+
     if (!empty($initiator)) {
         foreach ($initiator as $column => $value) {
             $doc['initiator_'.$column] = $value;
-- 
GitLab