X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FSearch%2FElements%2FEditFormat;h=9e2e11eba36073ad227132e2da8c8984dac5ff23;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=3eb5a91000877cbd30813a04fe4155e19a9ad548;hpb=43a06151e47d2c59b833cbd8c26d97865ee850b6;p=freeside.git diff --git a/rt/share/html/Search/Elements/EditFormat b/rt/share/html/Search/Elements/EditFormat index 3eb5a9100..9e2e11eba 100644 --- a/rt/share/html/Search/Elements/EditFormat +++ b/rt/share/html/Search/Elements/EditFormat @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -59,7 +59,8 @@ @@ -105,8 +106,10 @@
@@ -120,6 +123,12 @@ +<%init> +my $selected = $ARGS{SelectDisplayColumns}; +$selected = [ $selected ] unless ref $selected; +my %selected; +$selected{$_}++ for grep {defined} @{ $selected }; + <%ARGS> $CurrentFormat => undef $AvailableColumns => undef