From 29bd389c36243488f8225aa25186241c03633bda Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 22 Jun 2022 14:33:58 -0600 Subject: [PATCH] Don't set attributes on sub-classes - it's not needed, and interferes with taglist-account --- api/etemplate.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/etemplate.php b/api/etemplate.php index 564278699f..bcae146a4e 100644 --- a/api/etemplate.php +++ b/api/etemplate.php @@ -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'; }