mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:29 +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
bd82a46b1f
commit
044538ae09
@ -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