diff --git a/etemplate/inc/class.select_widget.inc.php b/etemplate/inc/class.select_widget.inc.php index de4b641a3e..3fa4a1a805 100644 --- a/etemplate/inc/class.select_widget.inc.php +++ b/etemplate/inc/class.select_widget.inc.php @@ -211,7 +211,7 @@ $cell['no_lang'] = True; break; - case 'select-account': // options: #rows,{accounts(default)|both|groups|owngroups},{0(=lid)|1(default=name)|2(=lid+name))} + case 'select-account': // options: #rows,{accounts(default)|both|groups|owngroups},{0(=lid)|1(default=name)|2(=lid+name),expand-multiselect-rows)} //echo "
select-account widget: name=$cell[name], type='$type', rows=$rows, readonly=".(int)($cell['readonly'] || $readonlys)."
\n"; if($type == 'owngroups') { @@ -233,7 +233,8 @@ { if (!is_object($GLOBALS['egw']->uiaccountsel)) { - $GLOBALS['egw']->uiaccountsel =& CreateObject('phpgwapi.uiaccountsel'); + require_once(EGW_API_INC.'/class.uiaccountsel.inc.php'); + $GLOBALS['egw']->uiaccountsel =& new uiaccountsel; } $help = (int)$cell['no_lang'] < 2 ? lang($cell['help']) : $cell['help']; $onFocus = "self.status='".addslashes(htmlspecialchars($help))."'; return true;"; @@ -247,8 +248,9 @@ $onlyPrint = $onlyPrint ? implode('