From 8195adfa85beb1afd8c02b9badb83b1588962696 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 12 Jan 2023 10:01:00 -0700 Subject: [PATCH] Keep et2-link app attribute if set --- api/etemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/etemplate.php b/api/etemplate.php index f1009dc20f..4062ddf0b5 100644 --- a/api/etemplate.php +++ b/api/etemplate.php @@ -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) . ">";