diff --git a/admin/templates/default/mailaccount.xet b/admin/templates/default/mailaccount.xet
index 92db55609f..59d4e03bba 100644
--- a/admin/templates/default/mailaccount.xet
+++ b/admin/templates/default/mailaccount.xet
@@ -256,12 +256,12 @@
-
+
-
+
@@ -373,8 +373,8 @@
-
-
+
+
\ No newline at end of file
diff --git a/api/etemplate.php b/api/etemplate.php
index 90e086cc99..1155ee579f 100644
--- a/api/etemplate.php
+++ b/api/etemplate.php
@@ -183,11 +183,24 @@ function send_template()
preg_match_all('/(^|\s)([a-z0-9_-]+)="([^"]*)"/i', $matches[3], $attrs, PREG_PATTERN_ORDER);
$attrs = array_combine($attrs[2], $attrs[3]);
- if (isset($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))
{
$attrs['multiple'] = 'true';
unset($attrs['tags']);
}
+ // taglist had allowFreeEntries and enableEditMode with a default of true, while et2-select has it with a default of false
+ if ($matches['1'] === 'taglist')
+ {
+ if (!isset($attrs['allowFreeEntries']))
+ {
+ $attrs['allowFreeEntries'] = 'true';
+ }
+ if (!isset($attrs['enableEditMode']))
+ {
+ $attrs['enableEditMode'] = 'true';
+ }
+ }
// no multiple="toggle" or expand_multiple_rows="N" currently, thought Shoelace's select multiple="true" is relative close
// until we find something better, just switch to multiple="true"
if (isset($attrs['multiple']) && $attrs['multiple'] === 'toggle' || !empty($attrs['expand_multiple_rows']))