[Rt-commit] rt branch, 4.2/update-tabs-callback, created. rt-4.2.13-60-gd6cdacb
Jim Brandt
jbrandt at bestpractical.com
Mon Sep 12 09:24:14 EDT 2016
The branch, 4.2/update-tabs-callback has been created
at d6cdacb638315ae2772ba97d0c5894e9daa22e6d (commit)
- Log -----------------------------------------------------------------
commit d6cdacb638315ae2772ba97d0c5894e9daa22e6d
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Mon Sep 12 09:23:31 2016 -0400
Provide more parameters to Privileged callback
diff --git a/share/html/Elements/Tabs b/share/html/Elements/Tabs
index 1b81833..0a00512 100644
--- a/share/html/Elements/Tabs
+++ b/share/html/Elements/Tabs
@@ -757,6 +757,9 @@ my $build_main_nav = sub {
}
}
+ # Scope here so we can share in the Privileged callback
+ my $args = '';
+ my $has_query = '';
if (
(
$request_path =~ m{^/(?:Ticket|Search)/}
@@ -767,8 +770,6 @@ my $build_main_nav = sub {
)
{
my $search = Menu()->child('search')->child('tickets');
- my $args = '';
- my $has_query = '';
my $current_search = $session{"CurrentSearchHash"} || {};
my $search_id = $DECODED_ARGS->{'SavedSearchLoad'} || $DECODED_ARGS->{'SavedSearchId'} || $current_search->{'SearchId'} || '';
my $chart_id = $DECODED_ARGS->{'SavedChartSearchId'} || $current_search->{SavedChartSearchId};
@@ -936,7 +937,7 @@ my $build_main_nav = sub {
PageMenu()->child( edit => title => loc('Edit'), path => '/Prefs/MyRT.html' );
}
- $m->callback( CallbackName => 'Privileged', Path => $request_path );
+ $m->callback( CallbackName => 'Privileged', Path => $request_path, Search_Args => $args, Has_Query => $has_query );
};
my $build_selfservice_nav = sub {
-----------------------------------------------------------------------
More information about the rt-commit
mailing list