From d0751329463b6331b141568f34761dbf7c1bfe25 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 22 Feb 2010 16:34:40 +0000 Subject: [PATCH] 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 --- xajax.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xajax.php b/xajax.php index 6080f02a4c..86320b49aa 100644 --- a/xajax.php +++ b/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 { @@ -155,7 +155,13 @@ function doXMLHTTP() } $ajaxClass =& CreateObject($appName.'.'.$className); $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 ); } $xajax = new xajax();