X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FTicket%2FElements%2FAddAttachments;h=e05b78109c114c7e5f64d302dce3cfa37a919d3e;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=25470eb17ac46971b21ea10c7cfe1aefa9adb814;hpb=919e930aa9279b3c5cd12b593889cd6de79d67bf;p=freeside.git diff --git a/rt/share/html/Ticket/Elements/AddAttachments b/rt/share/html/Ticket/Elements/AddAttachments index 25470eb17..e05b78109 100644 --- a/rt/share/html/Ticket/Elements/AddAttachments +++ b/rt/share/html/Ticket/Elements/AddAttachments @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -45,12 +45,14 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -% if (exists $session{'Attachments'}) { +% if ( $attachments ) { <&|/l&>Attached file: <&|/l&>Check box to delete
-% foreach my $attach_name (sort keys %{$session{'Attachments'}}) { -<%$attach_name%>
+% foreach my $attach_name ( sort keys %$attachments ) { + + +
% } # end of foreach @@ -59,3 +61,12 @@ <&|/l&>Attach: % $m->callback( %ARGS, CallbackName => 'End' ); +<%ARGS> +$Token => '' + +<%INIT> +my $attachments; +if ( exists $session{'Attachments'}{ $Token } && keys %{ $session{'Attachments'}{ $Token } } ) { + $attachments = $session{'Attachments'}{ $Token }; +} +