From a9a852d78ed50d283fa4540aa0680116f89cc84b Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 9 Jan 2012 14:51:40 +0000 Subject: [PATCH] API/tree: do not check parent treenodes if not expizitly selected --- phpgwapi/inc/class.html.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index 65b6cad2a9..95cee707eb 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -1390,7 +1390,7 @@ class html if ($_onCheckHandler && $_selected) // check selected items on multi selection { if (!is_array($_selected)) $_selected = explode(',',$_selected); - if (in_array($path,$_selected,!is_numeric($path))) $entryOptions .= ',CHECKED'; + if (array_search("$path",$_selected)!==false) $entryOptions .= ',CHECKED'; //echo "

path=$path, _selected=".print_r($_selected,true).": $entryOptions

\n"; } // highlight current item