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 {
->values_flat('canned_id', 'title');
if ($deptId) {
$depts = Q::any(array('dept_id' => $deptId));
$depts = array($deptId);
if (!$explicit)
$depts->add(array('dept_id' => 0));
$canned->filter($depts);
$depts[] = 0;
$canned->filter(array('dept_id__in' => $depts));
}
$responses = array();
......
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