diff --git a/include/staff/filter.inc.php b/include/staff/filter.inc.php index c84e539b6ade114b0fc87fc36b01c9d40e6c3e30..b23dd520bc8338ba4188162395f3045df6aaef3f 100644 --- a/include/staff/filter.inc.php +++ b/include/staff/filter.inc.php @@ -189,8 +189,9 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); <select name="canned_response"> <option value="">— None —</option> <?php - if($canneds=Canned::responsesByDeptId($thisstaff->getDeptId())) { - foreach ($canneds as $id => $title) { + $sql='SELECT canned_id,title FROM '.CANNED_TABLE.' ORDER by title'; + if ($res=db_query($sql)) { + while (list($id,$title)=db_fetch_row($res)) { $selected=($info['canned_response'] && $id==$info['canned_response']) ? 'selected="selected"' : ''; @@ -200,6 +201,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); } ?> </select> + <em>(Automatically respond with this canned attachment)</em> </td> </tr> <tr>