From 45a46460c6a02ec04bb2fc8191aaa8f4c180e81e Mon Sep 17 00:00:00 2001
From: JediKev <kevin@enhancesoft.com>
Date: Mon, 6 Aug 2018 10:07:24 -0500
Subject: [PATCH] issue: Deleted Field Thread Events (template)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This addresses an issue introduced with `9ab2317` where the icon for the
event still shows even though we continued and didn’t return the event
description.
---
 include/staff/templates/thread-event.tmpl.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/staff/templates/thread-event.tmpl.php b/include/staff/templates/thread-event.tmpl.php
index f98a1e320..979253071 100644
--- a/include/staff/templates/thread-event.tmpl.php
+++ b/include/staff/templates/thread-event.tmpl.php
@@ -1,8 +1,10 @@
+<?php if ($desc = $event->getDescription(ThreadEvent::MODE_STAFF)) { ?>
 <div class="thread-event <?php if ($event->uid) echo 'action'; ?>">
         <span class="type-icon">
           <i class="faded icon-<?php echo $event->getIcon(); ?>"></i>
         </span>
         <span class="faded description">
-            <?php echo $event->getDescription(ThreadEvent::MODE_STAFF); ?>
+            <?php echo $desc; ?>
         </span>
 </div>
+<?php } ?>
-- 
GitLab