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

Jim Brandt jbrandt at bestpractical.com
Fri Jun 9 13:54:55 EDT 2017


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

- Log -----------------------------------------------------------------
commit f235e29f3b3733a326da67458e7d063fc8a36ccb
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.

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