Accept search & search options from SearchMixin

We want it in the signature, even if we don't use it right now.
This commit is contained in:
nathan 2022-07-05 10:13:06 -06:00
parent c616f1c6b5
commit c8ccf78550

View File

@ -63,14 +63,14 @@ class Taglist extends Etemplate\Widget
* Find entries that match query parameter (from link system) and format them
* as the widget expects, a list of {id: ..., label: ...} objects
*/
public static function ajax_search()
public static function ajax_search($search_text, $search_options = [])
{
$app = $_REQUEST['app'];
$type = $_REQUEST['type'];
$query = $_REQUEST['query'];
$options = array();
$links = array();
if ($type == "account")
if($type == "account")
{
// Only search if a query was provided - don't search for all accounts
if($query)