From 1fadfd1b28b336d273acad37d358650313ea6c6e Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Fri, 25 Apr 2014 15:46:14 -0500
Subject: [PATCH] Fixup rendering of extra form in new ticket by staff

---
 include/staff/templates/dynamic-form.tmpl.php | 8 ++++++--
 scp/css/scp.css                               | 4 +++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/include/staff/templates/dynamic-form.tmpl.php b/include/staff/templates/dynamic-form.tmpl.php
index aaaf1bf69..d44d3062b 100644
--- a/include/staff/templates/dynamic-form.tmpl.php
+++ b/include/staff/templates/dynamic-form.tmpl.php
@@ -6,8 +6,10 @@ if (isset($options['entry']) && $options['mode'] == 'edit'
     && ($_POST['forms'] && !in_array($options['entry']->getId(), $_POST['forms']))
 )
     return;
-?>
+
+if (isset($options['entry']) && $options['mode'] == 'edit') { ?>
 <tbody>
+<?php } ?>
     <tr><td style="width:<?php echo $options['width'] ?: 150;?>px;"></td><td></td></tr>
 <?php
 // Keep up with the entry id in a hidden field to decide what to add and
@@ -79,5 +81,7 @@ if (isset($options['entry']) && $options['mode'] == 'edit') { ?>
             <?php } ?>
             </div></td>
         </tr>
-    <?php } ?>
+    <?php }
+if (isset($options['entry']) && $options['mode'] == 'edit') { ?>
 </tbody>
+<?php } ?>
diff --git a/scp/css/scp.css b/scp/css/scp.css
index 5a9417200..416ee3850 100644
--- a/scp/css/scp.css
+++ b/scp/css/scp.css
@@ -550,8 +550,10 @@ a.print {
     border-right:1px solid #ddd;
 }
 
-.form_table td:not(:empty) {
+.form_table td {
     border-bottom:1px solid #ddd;
+}
+.form_table td:not(:empty) {
     height: 20px;
 }
 
-- 
GitLab