mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02: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] ?? '');
|
$tag = 'et2-tree'.($matches[1] ?? '');
|
||||||
$attrs = parseAttrs($matches[2]);
|
$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';
|
$tag .= '-multiple';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user