[Rt-commit] [rtir] 01/18: Bugfixes to most recent tabs update

Jesse Vincent jesse at bestpractical.com
Wed Mar 11 03:36:43 EDT 2015


This is an automated email from the git hooks/post-receive script.

jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.

commit 0a5d0f46fdaf25e368ad71d2541dbacd3812b8d9
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Mar 10 18:34:53 2015 -0700

    Bugfixes to most recent tabs update
---
 html/Callbacks/RTIR/Elements/Tabs/Privileged | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/html/Callbacks/RTIR/Elements/Tabs/Privileged b/html/Callbacks/RTIR/Elements/Tabs/Privileged
index 0494da8..e4be067 100644
--- a/html/Callbacks/RTIR/Elements/Tabs/Privileged
+++ b/html/Callbacks/RTIR/Elements/Tabs/Privileged
@@ -130,7 +130,7 @@ $request_path =~ s!/{2,}!/!g;
 return unless $request_path =~ m{^/RTIR/};
 
 
-my $re_rtir_path = qr'^/RTIR/(?:c/.*?/?)?';
+my $re_rtir_path = qr'^/RTIR/(?:c/[^/]*/?)?';
 
 my $re_rtir_types = '(?:'. join( '|', map "\Q$_\E", RT::IR->Types ) .')';
 
@@ -399,7 +399,7 @@ if ( $request_path =~ m{(?:$re_rtir_path)(?:$re_rtir_types/)?(Display|Edit|Updat
         back => title => loc('Back to ticket #[_1]', $id),
         path => RT::IR->HREFTo("Display.html?id=$id"),
     );
-} elsif ( $request_path =~ m{(?:$re_rtir_path)(Search/|Incident/BulkAbandon\.html$|Report/BulkReject\.html$)} ) {
+} elsif ( $request_path =~ m{(?:$re_rtir_path)(Search/?|Incident/BulkAbandon\.html$|Report/BulkReject\.html$)} ) {
     my %args = $search_arguments->();
 
     my $lifecycle = $args->{'Lifecycle'} || '';

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list