[Rt-commit] rtir branch, 5.0/fix-rtir-at-a-glance-edit-button, created. 5.0.0-15-g56cd6336

Craig Kaiser craig at bestpractical.com
Tue Oct 27 10:17:48 EDT 2020


The branch, 5.0/fix-rtir-at-a-glance-edit-button has been created
        at  56cd6336332078989b72d8e8869e0f0e79af943f (commit)

- Log -----------------------------------------------------------------
commit 56cd6336332078989b72d8e8869e0f0e79af943f
Author: craig kaiser <craig at bestpractical.com>
Date:   Tue Oct 27 09:52:13 2020 -0400

    Include full web path for RTIR page edit cog
    
    When using the 'raw_html' key to build a link the full web path must be
    provided.

diff --git a/html/Callbacks/RTIR/Elements/Tabs/Privileged b/html/Callbacks/RTIR/Elements/Tabs/Privileged
index f370a0dc..4c8bc5db 100644
--- a/html/Callbacks/RTIR/Elements/Tabs/Privileged
+++ b/html/Callbacks/RTIR/Elements/Tabs/Privileged
@@ -587,7 +587,7 @@ if ( $request_path =~ m{(?:$re_rtir_path)(?:$re_rtir_types/)?(Display|Edit|Updat
 
 if ( $session{'CurrentUser'}->HasRight(Right => 'ModifySelf', Object => $RT::System) ) {
     if ( $request_path =~ m{(?:$re_rtir_path)(?:index\.html|)$} ) {
-        PageMenu()->child( edit => raw_html => q[<a id="page-edit" class="menu-item" href="] . RT::IR->HREFTo("Prefs/Home.html", IncludeWebPath => 0) . qq["><span class="fas fa-cog" alt="].loc('Edit').q[" data-toggle="tooltip" data-placement="top" data-original-title="].loc('Edit').q["></span></a>]);
+        PageMenu()->child( edit => raw_html => q[<a id="page-edit" class="menu-item" href="] . RT::IR->HREFTo("Prefs/Home.html") . qq["><span class="fas fa-cog" alt="].loc('Edit').q[" data-toggle="tooltip" data-placement="top" data-original-title="].loc('Edit').q["></span></a>]);
     }
     Menu->child('preferences')->child('settings')->child(
         rtir_home_page => title => loc('RTIR at a glance'),

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


More information about the rt-commit mailing list