From c8ccf785500dda9688d3ce808178affc5060072b Mon Sep 17 00:00:00 2001 From: nathan <nathangray.bsc+github@gmail.com> Date: Tue, 5 Jul 2022 10:13:06 -0600 Subject: [PATCH] Accept search & search options from SearchMixin We want it in the signature, even if we don't use it right now. --- api/src/Etemplate/Widget/Taglist.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Etemplate/Widget/Taglist.php b/api/src/Etemplate/Widget/Taglist.php index b06ea214ad..926913011d 100644 --- a/api/src/Etemplate/Widget/Taglist.php +++ b/api/src/Etemplate/Widget/Taglist.php @@ -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)