From d959bada8af51c46f70f5df849ff5356ef59b5e7 Mon Sep 17 00:00:00 2001 From: Julius Heinisch Date: Mon, 19 Oct 2026 14:53:02 +0200 Subject: [PATCH] fix: show link attribute also in dynamicfield sets. --- Kernel/System/DynamicField/Driver/Set.pm | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Kernel/System/DynamicField/Driver/Set.pm b/Kernel/System/DynamicField/Driver/Set.pm index afb98d3ce0..0b955b0f87 100644 --- a/Kernel/System/DynamicField/Driver/Set.pm +++ b/Kernel/System/DynamicField/Driver/Set.pm @@ -715,8 +715,25 @@ sub DisplayValueRender { if ($HTMLOutput) { if ( $Element->{Link} ) { + # fix for sets with link attribute + my %LinkData = map { + ( + $_ => $Param{Value}[$SetIndex]{$_}, + 'DynamicField_' . $_ => $Param{Value}[$SetIndex]{$_}, + ) + } keys $Param{Value}[$SetIndex]->%*; + $LinkData{Value} = $Element->{Value}; + + my $Link = $Param{LayoutObject}->Output( + Template => '[% Data.Link | Interpolate %]', + Data => { + %LinkData, + Link => $Element->{Link}, + }, + ); + $SetValue{Value}[$SetIndex] - .= "

{Link}\" title=\"$Element->{Title}\">$Element->{Value}

"; + .= "

{Title}\">$Element->{Value}

"; } else { $SetValue{Value}[$SetIndex]