X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FTicket%2FElements%2FAddAttachments;h=e05b78109c114c7e5f64d302dce3cfa37a919d3e;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=d00a021af1529b0cbe53c2865a545ab28187c169;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125;p=freeside.git diff --git a/rt/share/html/Ticket/Elements/AddAttachments b/rt/share/html/Ticket/Elements/AddAttachments index d00a021af..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-2013 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 (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 }; +} +