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:
ralf 2023-03-17 12:53:34 +01:00
parent 9af1a58da5
commit d653bde7c0

View File

@ -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))
{