X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FShredder%2FPlugin%2FBase%2FSearch.pm;h=a40b12d0b57192fe9f7f5e65655284910f33ee6a;hb=187086c479a09629b7d180eec513fb7657f4e291;hp=1c20b4f0390a6460ded264b460eedc449feedc95;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git diff --git a/rt/lib/RT/Shredder/Plugin/Base/Search.pm b/rt/lib/RT/Shredder/Plugin/Base/Search.pm index 1c20b4f03..a40b12d0b 100644 --- a/rt/lib/RT/Shredder/Plugin/Base/Search.pm +++ b/rt/lib/RT/Shredder/Plugin/Base/Search.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2018 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -76,10 +76,11 @@ Allow you to limit search results. B<< Default value is C<10> >>. sub SupportArgs { my %seen; - return sort + my @args = sort grep $_ && !$seen{$_}, shift->SUPER::SupportArgs(@_), qw(limit); + return @args; } sub TestArgs