From 57ff6653634963688c98f59994fc77f46b76cfe8 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Mon, 4 Mar 2013 23:14:55 -0500 Subject: [PATCH] Don't show reply/response section on new ticket form if the staff can NOT post replies... also checked in Ticket::open(). --- include/staff/ticket-open.inc.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/staff/ticket-open.inc.php b/include/staff/ticket-open.inc.php index f36c1e0bc..ed29b8739 100644 --- a/include/staff/ticket-open.inc.php +++ b/include/staff/ticket-open.inc.php @@ -219,6 +219,10 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); <textarea name="issue" cols="21" rows="8" style="width:80%;"><?php echo $info['issue']; ?></textarea> </td> </tr> + <?php + //is the user allowed to post replies?? + if($thisstaff->canPostReply()) { + ?> <tr> <th colspan="2"> <em><strong>Response</strong>: Optional response to the above issue.</em> @@ -270,8 +274,8 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); </div> </td> </tr> - <?php - } ?> + <?php + } ?> <?php if($thisstaff->canCloseTickets()) { ?> @@ -304,6 +308,9 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); </table> </td> </tr> + <?php + } //end canPostReply + ?> <tr> <th colspan="2"> <em><strong>Internal Note</strong>: Optional internal note (recommended on assignment) <font class="error"> <?php echo $errors['note']; ?></font></em> -- GitLab