[Rt-commit] rtir branch 5.0/add-ticket-id-to-back-to-page-menus created. 5.0.1-32-gbb789938

BPS Git Server git at git.bestpractical.com
Wed Nov 10 21:01:17 UTC 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rtir".

The branch, 5.0/add-ticket-id-to-back-to-page-menus has been created
        at  bb7899386298a9319911262ac824bc861bdbeb3a (commit)

- Log -----------------------------------------------------------------
commit bb7899386298a9319911262ac824bc861bdbeb3a
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Nov 11 04:59:30 2021 +0800

    Add ticket id info to "Back to ..." search page menus

diff --git a/html/Callbacks/RTIR/Elements/Tabs/Privileged b/html/Callbacks/RTIR/Elements/Tabs/Privileged
index eabfbde0..72fdde02 100644
--- a/html/Callbacks/RTIR/Elements/Tabs/Privileged
+++ b/html/Callbacks/RTIR/Elements/Tabs/Privileged
@@ -119,13 +119,13 @@ if ( $m->request_comp->path =~ m{^/Search/} ) {
 
         if ( my $results = PageMenu()->child('results') ) {
             if ( $results->path =~ m{^/RTIR/Incident/Reply/} ) {
-                $results->title( loc('Back to Incident Reply') );
+                $results->title( loc('Back to Incident Reply #[_1]', $args{id}) );
             }
             elsif ( $results->path =~ m{^/RTIR/Link/} ) {
-                $results->title( loc('Back to Link') );
+                $results->title( loc('Back to Link #[_1]', $args{id}) );
             }
             elsif ( $results->path =~ m{^/RTIR/Merge/} ) {
-                $results->title( loc('Back to Merge') );
+                $results->title( loc('Back to Merge #[_1]', $args{id}) );
             }
         }
     }

-----------------------------------------------------------------------


hooks/post-receive
-- 
rtir


More information about the rt-commit mailing list