mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
fix for bug #674: no more simple multiple participant selection
This commit is contained in:
parent
8ac09e8dba
commit
2ed91ce075
@ -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 "<p>select-account widget: name=$cell[name], type='$type', rows=$rows, readonly=".(int)($cell['readonly'] || $readonlys)."</p>\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('<br />',$onlyPrint) : lang((int)$rows < 0 ? 'all' : $rows);
|
||||
$noPrint_class = ' class="noPrint"';
|
||||
}
|
||||
if (($rows > 0 || $type3) && substr($name,-2) != '[]') $name .= '[]';
|
||||
$value = $GLOBALS['egw']->uiaccountsel->selection($name,'eT_accountsel_'.str_replace(array('[','][',']'),array('_','_',''),$name),
|
||||
$value,$type,$rows > 0 ? $rows : 0,False,' onfocus="'.$onFocus.'" onblur="'.$onBlur.'"'.$noPrint_class,
|
||||
$value,$type,$rows > 0 ? $rows : ($type3 ? -$type3 : 0),False,' onfocus="'.$onFocus.'" onblur="'.$onBlur.'"'.$noPrint_class,
|
||||
$cell['onchange'] == '1' ? 'this.form.submit();' : $cell['onchange'],
|
||||
!empty($rows) && 0+$rows <= 0 ? lang($rows < 0 ? 'all' : $rows) : False);
|
||||
if ($cell['noprint'])
|
||||
|
Loading…
Reference in New Issue
Block a user