%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
if ($QueueObj->id) {
$Scrips->LimitToQueue($id);
+ $Format ||= RT->Config->Get('AdminSearchResultFormat')->{'Scrips'};
}
else {
$Scrips->LimitToGlobal();
+ $Format ||= RT->Config->Get('AdminSearchResultFormat')->{'GlobalScrips'};
}
-# {{{ deal with modifying and deleting existing scrips
+# deal with modifying and deleting existing scrips
# we still support DeleteScrip-id format but array is preferred
foreach my $id ( grep $_, @DeleteScrip, map /^DeleteScrip-(\d+)/, keys %ARGS ) {
my $scrip = RT::Scrip->new($session{'CurrentUser'});
push @actions, $msg;
}
}
-# }}}
-
-$Format ||= RT->Config->Get('AdminSearchResultFormat')->{'Scrips'};
-
</%init>
<%ARGS>