Skip to content
Snippets Groups Projects
Commit 57ff6653 authored by Peter Rotich's avatar Peter Rotich
Browse files

Don't show reply/response section on new ticket form if the staff can NOT post...

Don't show reply/response section on new ticket form if the staff can NOT post replies... also checked in Ticket::open().
parent 995f28cb
Branches
Tags
No related merge requests found
...@@ -219,6 +219,10 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); ...@@ -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> <textarea name="issue" cols="21" rows="8" style="width:80%;"><?php echo $info['issue']; ?></textarea>
</td> </td>
</tr> </tr>
<?php
//is the user allowed to post replies??
if($thisstaff->canPostReply()) {
?>
<tr> <tr>
<th colspan="2"> <th colspan="2">
<em><strong>Response</strong>: Optional response to the above issue.</em> <em><strong>Response</strong>: Optional response to the above issue.</em>
...@@ -270,8 +274,8 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); ...@@ -270,8 +274,8 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</div> </div>
</td> </td>
</tr> </tr>
<?php <?php
} ?> } ?>
<?php <?php
if($thisstaff->canCloseTickets()) { ?> if($thisstaff->canCloseTickets()) { ?>
...@@ -304,6 +308,9 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); ...@@ -304,6 +308,9 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</table> </table>
</td> </td>
</tr> </tr>
<?php
} //end canPostReply
?>
<tr> <tr>
<th colspan="2"> <th colspan="2">
<em><strong>Internal Note</strong>: Optional internal note (recommended on assignment) <font class="error">&nbsp;<?php echo $errors['note']; ?></font></em> <em><strong>Internal Note</strong>: Optional internal note (recommended on assignment) <font class="error">&nbsp;<?php echo $errors['note']; ?></font></em>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment