mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:51 +01:00
ignore tags for select-country, it was never used to get multiple countries
fixes error in addressbook edit, as an array is returned instead of string with country-code
This commit is contained in:
parent
9af1a58da5
commit
d653bde7c0
@ -278,6 +278,12 @@ function send_template()
|
||||
{
|
||||
$attrs = parseAttrs($matches[3]);
|
||||
|
||||
// ignore tags for select-country, it was never used to get multiple countries
|
||||
if (isset($attrs['tags']) && ($attrs['type'] === 'select-country' || str_starts_with($matches[0], '<select-country')))
|
||||
{
|
||||
unset($attrs['tags']);
|
||||
}
|
||||
|
||||
// set multiple for old tags attribute or taglist without maxSelection="1"
|
||||
if (isset($attrs['tags']) || $matches['1'] === 'taglist' && (empty($attrs['maxSelection']) || $attrs['maxSelection'] > 1))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user