Skip to content
Snippets Groups Projects
Commit de0a46a9 authored by Jared Hancock's avatar Jared Hancock
Browse files

canned: Show department-specific canned responses

parent 07c1d79f
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