Skip to content
Snippets Groups Projects
Commit 9ee28e71 authored by Peter Rotich's avatar Peter Rotich Committed by Jared Hancock
Browse files

Support viewing tickets without a departments

This can happen when associated department is private and the system has no
default department (which is possible with v1.6 upgrade)
parent 21ed28eb
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ if(!$dept || !$dept->isPublic())
</tr>
<tr>
<th>Department:</th>
<td><?php echo Format::htmlchars($dept->getName()); ?></td>
<td><?php echo Format::htmlchars($dept instanceof Dept ? $dept->getName() : ''); ?></td>
</tr>
<tr>
<th>Create Date:</th>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment