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

Merge pull request #2315 from greezybacon/issue/2304


canned: Show department-specific canned responses

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 971a5e08 de0a46a9
No related branches found
No related tags found
No related merge requests found
...@@ -226,10 +226,10 @@ extends VerySimpleModel { ...@@ -226,10 +226,10 @@ extends VerySimpleModel {
->values_flat('canned_id', 'title'); ->values_flat('canned_id', 'title');
if ($deptId) { if ($deptId) {
$depts = Q::any(array('dept_id' => $deptId)); $depts = array($deptId);
if (!$explicit) if (!$explicit)
$depts->add(array('dept_id' => 0)); $depts[] = 0;
$canned->filter($depts); $canned->filter(array('dept_id__in' => $depts));
} }
$responses = array(); $responses = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment