[Rt-commit] rt branch, 4.4/initial-callback-bulk, updated. rt-4.4.2-58-g0e2a58c
Craig Kaiser
craig at bestpractical.com
Mon Dec 18 15:34:20 EST 2017
The branch, 4.4/initial-callback-bulk has been updated
via 0e2a58c16c44583014ec7e1a820cdb87da18ced0 (commit)
from 208df9f6c8c4602881795db611119757428f466d (commit)
Summary of changes:
share/html/Search/Bulk.html | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 0e2a58c16c44583014ec7e1a820cdb87da18ced0
Author: Craig Kaiser <craig at bestpractical.com>
Date: Mon Dec 18 15:22:47 2017 -0500
Move callback and add args
Move the 'Initial' callback closer
to the start of the INIT block. As
well as adding more arguments to the
callback.
diff --git a/share/html/Search/Bulk.html b/share/html/Search/Bulk.html
index fec0f7d..348d45e 100644
--- a/share/html/Search/Bulk.html
+++ b/share/html/Search/Bulk.html
@@ -226,6 +226,10 @@ $cfs->SetContextObject( values %$seen_queues ) if keys %$seen_queues == 1;
</div>
<%INIT>
+my (@results);
+
+$m->callback(CallbackName => 'Initial', ARGSRef => \%ARGS, results_ref => \@results, QueryRef => \$Query, UpdateTicketRef => \@UpdateTicket);
+
unless ( defined $Rows ) {
$Rows = $RowsPerPage;
$ARGS{Rows} = $RowsPerPage;
@@ -235,11 +239,8 @@ my $title = loc("Update multiple tickets");
# Iterate through the ARGS hash and remove anything with a null value.
map ( $ARGS{$_} =~ /^$/ && ( delete $ARGS{$_} ), keys %ARGS );
-my (@results);
-
ProcessAttachments(ARGSRef => \%ARGS);
-$m->callback(CallbackName => 'Initial', ARGSRef => \%ARGS, results => @results);
$Page ||= 1;
$Format ||= RT->Config->Get('DefaultSearchResultFormat');
-----------------------------------------------------------------------
More information about the rt-commit
mailing list