mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Update etemplate.php
some templates use options="<number>,..." with <number> > 1, instead of multiple="true"
This commit is contained in:
parent
d2e029c504
commit
e9f5a1efc6
@ -422,7 +422,8 @@ function send_template()
|
||||
{
|
||||
$tag = 'et2-tree'.($matches[1] ?? '');
|
||||
$attrs = parseAttrs($matches[2]);
|
||||
if (!empty($attrs['multiple']) && $attrs['multiple'] !== 'false')
|
||||
if (!empty($attrs['multiple']) && $attrs['multiple'] !== 'false' ||
|
||||
!empty($attrs['options']) && (int)$attrs['options'] > 1)
|
||||
{
|
||||
$tag .= '-multiple';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user