From ed83d2513d81db3c654459b4078b8d0f9302ddd2 Mon Sep 17 00:00:00 2001
From: Nestor <npegane@hotmail.com>
Date: Wed, 25 Apr 2018 16:23:19 +0200
Subject: [PATCH] FEAT #7372 added real parent entity label in template fields

---
 modules/templates/datasources/letterbox_attachment.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/templates/datasources/letterbox_attachment.php b/modules/templates/datasources/letterbox_attachment.php
index 541dc4f5a90..7bdb5e2c8ee 100755
--- a/modules/templates/datasources/letterbox_attachment.php
+++ b/modules/templates/datasources/letterbox_attachment.php
@@ -36,7 +36,7 @@ if (!empty($res_id)) {
     $doc['nature_id'] = $_SESSION['mail_natures'][$doc['nature_id']];
 
     //INITIATOR INFO OF DOCUMENT
-    $stmt2 = $dbDatasource->query('SELECT a.entity_id as entity_id, a.entity_label as entity_label, a.parent_entity_id as parent_entity_id, a.short_label as short_label, a.email as email, a.entity_type as entity_type, b.entity_label as parent_entity_label
+    $stmt2 = $dbDatasource->query('SELECT a.entity_id as entity_id, a.entity_label as entity_label, a.parent_entity_id as parent_entity_id, b.entity_label as parent_entity_label, a.short_label as short_label, a.email as email, a.entity_type as entity_type, b.entity_label as parent_entity_label
     FROM entities as a, entities as b
     WHERE a.entity_id = ?
     AND a.parent_entity_id = b.entity_id', array($doc['initiator']));
-- 
GitLab