[Rt-commit] [rtir] 02/06: Improve RTIR's "Back to.." messages to better describe what they link back to
Jesse Vincent
jesse at bestpractical.com
Sun Mar 15 21:47:20 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 9048f0c58520beba9b723d35004a798e904a0041
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Sun Mar 15 18:44:35 2015 -0700
Improve RTIR's "Back to.." messages to better describe what they link back to
---
html/Callbacks/RTIR/Elements/Tabs/Privileged | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/html/Callbacks/RTIR/Elements/Tabs/Privileged b/html/Callbacks/RTIR/Elements/Tabs/Privileged
index 4b4541f..f74a4ca 100644
--- a/html/Callbacks/RTIR/Elements/Tabs/Privileged
+++ b/html/Callbacks/RTIR/Elements/Tabs/Privileged
@@ -328,7 +328,7 @@ if ( $request_path =~ m{(?:$re_rtir_path)(?:$re_rtir_types/)?(Display|Edit|Updat
,
);
PageMenu()->child(
- back => title => loc('Back to ticket #[_1]', $id),
+ back => title => loc('Back to [_1] #[_2]',lc RT::IR::TicketType(Lifecycle => $ticket->QueueObj->Lifecycle), $id),
path => RT::IR->HREFTo("Display.html?id=$id"),
);
} elsif ( $request_path =~ m{(?:$re_rtir_path)Incident/Children/} ) {
@@ -348,7 +348,7 @@ if ( $request_path =~ m{(?:$re_rtir_path)(?:$re_rtir_types/)?(Display|Edit|Updat
path => RT::IR->HREFTo("Create.html?". $query_string->( Incident => $id, Lifecycle => $lifecycle )),
);
PageMenu()->child(
- back => title => loc('Back to ticket #[_1]', $id),
+ back => title => loc('Back to [_1] #[_2]', lc RT::IR::TicketType( Lifecycle => $ticket->QueueObj->Lifecycle), $id),
path => RT::IR->HREFTo( "Display.html?id=$id"),
);
} elsif ( $request_path =~ m{^(?:$re_rtir_path)Merge/} ) {
@@ -370,7 +370,7 @@ if ( $request_path =~ m{(?:$re_rtir_path)(?:$re_rtir_types/)?(Display|Edit|Updat
path => RT::IR->HREFTo("Merge/Refine.html?". $query_string->( %args, Lifecycle => $ticket->QueueObj->Lifecycle )),
);
PageMenu()->child(
- back => title => loc('Back to ticket #[_1]', $id),
+ back => title => loc('Back to [_1] #[_2]', lc RT::IR::TicketType( Lifecycle => $ticket->QueueObj->Lifecycle), $id),
path => RT::IR->HREFTo("Display.html?id=$id"),
);
} elsif ( $request_path =~ m{(?:$re_rtir_path)Incident/Reply/} ) {
@@ -396,7 +396,7 @@ if ( $request_path =~ m{(?:$re_rtir_path)(?:$re_rtir_types/)?(Display|Edit|Updat
path => RT::IR->HREFTo("Incident/Reply/Refine.html?". $query_string->( %args )),
);
PageMenu()->child(
- back => title => loc('Back to ticket #[_1]', $id),
+ back => title => loc('Back to [_1] #[_2]', lc RT::IR::TicketType(Lifecycle => $ticket->QueueObj->Lifecycle), $id),
path => RT::IR->HREFTo("Display.html?id=$id"),
);
} elsif ( $request_path =~ m{(?:$re_rtir_path)(Search/?|Incident/BulkAbandon\.html$|Report/BulkReject\.html$)} ) {
@@ -512,8 +512,10 @@ if ( $request_path =~ m{(?:$re_rtir_path)(?:$re_rtir_types/)?(Display|Edit|Updat
} elsif ( $request_path =~ m{(?:$re_rtir_path)(?:$re_rtir_types/)?Split\.html$} ) {
my $id = $args->{'Split'};
+ my $ticket = RT::Ticket->new($session{'CurrentUser'});
+ $ticket->Load($id);
PageMenu()->child(
- back => title => loc('Back to ticket #[_1]', $id),
+ back => title => loc('Back to [_1] #[_2]',lc RT::IR::TicketType(Lifecycle => $ticket->QueueObj->Lifecycle), $id),
path => RT::IR->HREFTo("Display.html?id=$id"),
);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list