From 28b3dde6ece89af10d40eff310ce374338c6df60 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 7 Dec 2009 21:44:04 +0000 Subject: [PATCH] Change how type is passed to use the new link query options parameter --- etemplate/inc/class.link_widget.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.link_widget.inc.php b/etemplate/inc/class.link_widget.inc.php index b97f8a6058..521f8febb6 100644 --- a/etemplate/inc/class.link_widget.inc.php +++ b/etemplate/inc/class.link_widget.inc.php @@ -670,9 +670,13 @@ class link_widget if ($etemplate_exec_id) $request = etemplate_request::read($etemplate_exec_id); $response = new xajaxResponse(); + $options = array(); //$args = func_get_args(); $response->addAlert("link_widget::ajax_search('".implode("',\n'",$args)."')\n calling link->query( $app , $search, $type )" ); //$args = func_get_args(); error_log(__METHOD__."('".implode("','",$args)."')"); - if (!($found = egw_link::query($app,$search,$type))) // ignore the blur-text + if($type) { + $options['type'] = $type; + } + if (!($found = egw_link::query($app,$search,$options))) // ignore the blur-text { $GLOBALS['egw']->translation->add_app('etemplate'); $response->addAlert(lang('Nothing found - try again !!!'));