From bbaf1b1fb9565b28dc1e9140568b72397f4dd52e Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Fri, 29 Aug 2014 16:35:22 -0500
Subject: [PATCH] forms: Fix bug rendering client view page

---
 include/client/view.inc.php | 8 ++------
 tickets.php                 | 2 +-
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/include/client/view.inc.php b/include/client/view.inc.php
index 3d81f7900..8a6c2c4ee 100644
--- a/include/client/view.inc.php
+++ b/include/client/view.inc.php
@@ -181,19 +181,15 @@ if($ticket->getThreadCount() && ($thread=$ticket->getClientThread())) {
                     data-draft-namespace="ticket.client"
                     data-draft-object-id="<?php echo $ticket->getId(); ?>"
                     class="richtext ifhtml draft"><?php echo $info['message']; ?></textarea>
-            </td>
-        </tr>
         <?php
         if ($messageField->isAttachmentsEnabled()) { ?>
-        <tr>
-            <td colspan="2">
 <?php
             print $attachments->render(true);
 ?>
-            </td>
-        </tr>
         <?php
         } ?>
+            </td>
+        </tr>
     </table>
     <p style="padding-left:165px;">
         <input type="submit" value="<?php echo __('Post Reply');?>">
diff --git a/tickets.php b/tickets.php
index 7adb4029f..57b7ee0e8 100644
--- a/tickets.php
+++ b/tickets.php
@@ -123,6 +123,6 @@ if($ticket && $ticket->checkUserAccess($thisclient)) {
 }
 include(CLIENTINC_DIR.'header.inc.php');
 include(CLIENTINC_DIR.$inc);
-print $response_form->getMedia();
+print $tform->getMedia();
 include(CLIENTINC_DIR.'footer.inc.php');
 ?>
-- 
GitLab