Keep et2-link app attribute if set

This commit is contained in:
nathan 2023-01-12 10:01:00 -07:00
parent 461e83df28
commit 8195adfa85

View File

@ -267,7 +267,7 @@ function send_template()
if ($tag === 'et2-link-entry' && !empty($attrs['readonly']) || $tag === 'et2-link')
{
$tag = 'et2-link';
$attrs['app'] = $attrs['only_app'];
$attrs['app'] = $attrs['app'] ?? $attrs['only_app'];
unset($attrs['only_app'], $attrs['readonly']);
}
return "<$tag" . stringAttrs($attrs) . "></$tag>";