need to leave the NM header check for et2-button-icon conversation, to not convert [+ Add] in NM header

This commit is contained in:
ralf 2022-08-23 11:18:21 +02:00
parent e08824b45b
commit 94cec559d6

View File

@ -325,7 +325,8 @@ function send_template()
$attrs['noValidation'] = 'true';
}
// replace not set background_image attribute with et2-button-icon tag, if not in NM / lists
if (!empty($attrs['image']) && (empty($attrs['background_image']) || $attrs['background_image'] === 'false'))
if (!empty($attrs['image']) && (empty($attrs['background_image']) || $attrs['background_image'] === 'false') &&
!preg_match('/^(index|list)/', $name))
{
$tag = 'et2-button-icon';
}