mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
fix <description /> causes all sorts of problems (by replacing it separate)
for <select rows="N" also switch on multiple, as old eTemplate2 did fixes tracker site configuration did not allow to select more than one staff member
This commit is contained in:
parent
17c462d04e
commit
e38d0709b7
@ -176,6 +176,7 @@ function send_template()
|
|||||||
}, $str);
|
}, $str);
|
||||||
|
|
||||||
// replace just description, as they often contain >, like label="> %s"
|
// replace just description, as they often contain >, like label="> %s"
|
||||||
|
$str = preg_replace('#<description\s*/>#', '<et2-description></et2-description>', $str);
|
||||||
$str = preg_replace('#<description\s(.*?")\s*/>#s', '<et2-description $1></et2-description>', $str);
|
$str = preg_replace('#<description\s(.*?")\s*/>#s', '<et2-description $1></et2-description>', $str);
|
||||||
|
|
||||||
// modify <(vfs-mime|link-string|link-list) --> <et2-*
|
// modify <(vfs-mime|link-string|link-list) --> <et2-*
|
||||||
@ -246,6 +247,11 @@ function send_template()
|
|||||||
$attrs['multiple'] = 'true';
|
$attrs['multiple'] = 'true';
|
||||||
unset($attrs['expand_multiple_rows']);
|
unset($attrs['expand_multiple_rows']);
|
||||||
}
|
}
|
||||||
|
// <select rows="N" (to show N rows) previously also switched multiple on
|
||||||
|
if (!empty($attrs['rows']))
|
||||||
|
{
|
||||||
|
$attrs['multiple'] = true;
|
||||||
|
}
|
||||||
// automatic convert empty_label for multiple=true to a placeholder
|
// automatic convert empty_label for multiple=true to a placeholder
|
||||||
if (!empty($attrs['empty_label']) && !empty($attrs['multiple']))
|
if (!empty($attrs['empty_label']) && !empty($attrs['multiple']))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user