[Rt-commit] rt branch, 4.4/selfservice-show-create, created. rt-4.4.1-424-gf787bfe

Jim Brandt jbrandt at bestpractical.com
Fri Jun 9 13:57:08 EDT 2017


The branch, 4.4/selfservice-show-create has been created
        at  f787bfeb862dd493188f15fe83d7294dbabadccc (commit)

- Log -----------------------------------------------------------------
commit f787bfeb862dd493188f15fe83d7294dbabadccc
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Jun 9 13:51:32 2017 -0400

    Allow Create transactions for $SelfServiceCorrespondenceOnly
    
    7e3e17cf1 added an option to show only correspondence in self service
    history but omitted the create transaction. This meant self service users
    couldn't see the initial history entry that created the ticket, so
    allow the create transaction also.
    
    Fixes: I#32844

diff --git a/share/html/Elements/ShowHistoryPage b/share/html/Elements/ShowHistoryPage
index e98d807..5276708 100644
--- a/share/html/Elements/ShowHistoryPage
+++ b/share/html/Elements/ShowHistoryPage
@@ -123,7 +123,7 @@ while ( my $Transaction = $Transactions->Next ) {
 
     $skip = 1 if $m->request_path =~ m{^/SelfService/}
         and RT::Config->Get('SelfServiceCorrespondenceOnly')
-        and $Transaction->Type ne "Correspond";
+        and ($Transaction->Type ne "Correspond" && $Transaction->Type ne "Create");
 
     $m->callback(
         %ARGS,

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


More information about the rt-commit mailing list