Skip to content

Commit

Permalink
Don't show reply/response section on new ticket form if the staff can…
Browse files Browse the repository at this point in the history
… NOT post replies... also checked in Ticket::open().
  • Loading branch information
protich committed Mar 5, 2013
1 parent 995f28c commit 57ff665
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions include/staff/ticket-open.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@
<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>
Expand Down Expand Up @@ -270,8 +274,8 @@
</div>
</td>
</tr>
<?php
} ?>
<?php
} ?>

<?php
if($thisstaff->canCloseTickets()) { ?>
Expand Down Expand Up @@ -304,6 +308,9 @@
</table>
</td>
</tr>
<?php
} //end canPostReply
?>
<tr>
<th colspan="2">
<em><strong>Internal Note</strong>: Optional internal note (recommended on assignment) <font class="error">&nbsp;<?php echo $errors['note']; ?></font></em>
Expand Down

0 comments on commit 57ff665

Please sign in to comment.