mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Change how type is passed to use the new link query options parameter
This commit is contained in:
parent
dd1370f97f
commit
28b3dde6ec
@ -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 !!!'));
|
||||
|
Loading…
Reference in New Issue
Block a user