mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 03:19:56 +01:00
very dirty solution, when no types/subtypes get passed to link_widget::ajax_search() -> then add an empty type parameter; its temporary until I/we come up with a solution for the real cause
This commit is contained in:
parent
1d34ddbf1d
commit
d075132946
10
xajax.php
10
xajax.php
@ -94,7 +94,7 @@ function doXMLHTTP()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//error_log("xajax_doXMLHTTP('$arg0',...)");
|
//error_log("xajax_doXMLHTTP('$arg0',...)".print_r($argList,true));
|
||||||
|
|
||||||
if (strpos($arg0,'::') !== false && strpos($arg0,'.') === false) // static method name app_something::method
|
if (strpos($arg0,'::') !== false && strpos($arg0,'.') === false) // static method name app_something::method
|
||||||
{
|
{
|
||||||
@ -155,7 +155,13 @@ function doXMLHTTP()
|
|||||||
}
|
}
|
||||||
$ajaxClass =& CreateObject($appName.'.'.$className);
|
$ajaxClass =& CreateObject($appName.'.'.$className);
|
||||||
$argList = translation::convert($argList, 'utf-8');
|
$argList = translation::convert($argList, 'utf-8');
|
||||||
|
if ($arg0 == 'etemplate.link_widget.ajax_search' && count($argList)==7)
|
||||||
|
{
|
||||||
|
$first = array_shift($argList);
|
||||||
|
array_unshift($argList,'');
|
||||||
|
array_unshift($argList,$first);
|
||||||
|
}
|
||||||
|
//error_log("xajax_doXMLHTTP('$arg0',...)".print_r($argList,true));
|
||||||
return call_user_func_array(array(&$ajaxClass, $functionName), (array)$argList );
|
return call_user_func_array(array(&$ajaxClass, $functionName), (array)$argList );
|
||||||
}
|
}
|
||||||
$xajax = new xajax();
|
$xajax = new xajax();
|
||||||
|
Loading…
Reference in New Issue
Block a user