Skip to content
Snippets Groups Projects
Commit 42df4e89 authored by Peter Rotich's avatar Peter Rotich
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 70fbd04f
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,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