Fix Employee autocomplete bug (#2736)

This commit is contained in:
FrancescoUK
2020-03-01 17:34:39 +00:00
parent 822b7211ec
commit cdaf88ef28
2 changed files with 6 additions and 9 deletions

View File

@@ -37,7 +37,7 @@ class Employees extends Persons
*/
public function suggest()
{
$suggestions = $this->xss_clean($this->Employee->get_search_suggestions($this->input->post('term'), TRUE));
$suggestions = $this->xss_clean($this->Employee->get_search_suggestions($this->input->get('term'), TRUE));
echo json_encode($suggestions);
}