Don't set attributes on sub-classes - it's not needed, and interferes with taglist-account

This commit is contained in:
nathan 2022-06-22 14:33:58 -06:00
parent 874371483a
commit 29bd389c36

View File

@ -190,13 +190,13 @@ function send_template()
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($matches['1'] === 'taglist' && !$matches[2])
{
if (!isset($attrs['allowFreeEntries']))
if(!isset($attrs['allowFreeEntries']))
{
$attrs['allowFreeEntries'] = 'true';
}
if (!isset($attrs['editModeEnabled']))
if(!isset($attrs['editModeEnabled']))
{
$attrs['editModeEnabled'] = 'true';
}