[Rt-commit] rtir branch, 4.0/fix-history-attachment-url, created. 4.0.0rc1-7-g508e6e4

Dustin Graves dustin at bestpractical.com
Tue Jun 28 18:23:59 EDT 2016


The branch, 4.0/fix-history-attachment-url has been created
        at  508e6e453f3780df6fc7d3efb3a2b3b49944a116 (commit)

- Log -----------------------------------------------------------------
commit 508e6e453f3780df6fc7d3efb3a2b3b49944a116
Author: Dustin Graves <dustin at bestpractical.com>
Date:   Tue Jun 28 22:18:21 2016 +0000

    add AttachmentPath to ExtraShowHistoryArguments so attachment links will have proper URLs in ticket history
    
    Fixes: I#32084

diff --git a/html/Callbacks/RTIR/Helpers/TicketHistory/ExtraShowHistoryArguments b/html/Callbacks/RTIR/Helpers/TicketHistory/ExtraShowHistoryArguments
index 160f3d2..4716916 100644
--- a/html/Callbacks/RTIR/Helpers/TicketHistory/ExtraShowHistoryArguments
+++ b/html/Callbacks/RTIR/Helpers/TicketHistory/ExtraShowHistoryArguments
@@ -57,6 +57,7 @@ my $id = $Ticket->Id;
         EncryptionPath =>  RT::IR->HREFTo("Crypt.html"),
         (($type eq "Incident") ? () : (WarnUnsigned   => 1)),
         PathPrefix     => RT->Config->Get('WebPath') ."/Ticket/",
+        AttachmentPath => RT->Config->Get('WebPath') ."/Ticket/Attachment",
 );
 
 </%INIT>
diff --git a/html/RTIR/Display.html b/html/RTIR/Display.html
index fdf26f4..6730f0f 100644
--- a/html/RTIR/Display.html
+++ b/html/RTIR/Display.html
@@ -160,6 +160,7 @@
         EncryptionPath => RT::IR->HREFTo("Crypt.html"),
         WarnUnsigned   => 1,
         PathPrefix     => RT::IR->HREFTo("Ticket/"),
+        AttachmentPath => RT->Config->Get('WebPath') ."/Ticket/Attachment",
     &>
 % }
 
diff --git a/html/RTIR/Incident/Display.html b/html/RTIR/Incident/Display.html
index 461436f..44cac2d 100644
--- a/html/RTIR/Incident/Display.html
+++ b/html/RTIR/Incident/Display.html
@@ -161,7 +161,8 @@
         UpdatePath     => RT::IR->HREFTo("Update.html"),
         ForwardPath    => RT::IR->HREFTo("Forward.html"),
         EncryptionPath => RT::IR->HREFTo("Crypt.html"),
-        PathPrefix     => RT::IR->HREFTo("Ticket/")
+        PathPrefix     => RT::IR->HREFTo("Ticket/"),
+        AttachmentPath => RT->Config->Get('WebPath') ."/Ticket/Attachment",
     &>
 % }
 

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


More information about the rt-commit mailing list