[Rt-commit] rtir branch, 5.0/restore-incidents-and-investigations-on-create, updated. 4.0.1rc1-147-g2f835fb3

Aaron Trevena ast at bestpractical.com
Mon Jun 8 14:12:51 EDT 2020


The branch, 5.0/restore-incidents-and-investigations-on-create has been updated
       via  2f835fb3573c16db7b69f3dd2895a36fe853a0fd (commit)
      from  b80d086cfb1f48ed0e2b8f05aa63c0d5deefe064 (commit)

Summary of changes:
 html/RTIR/Incident/Create.html | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 2f835fb3573c16db7b69f3dd2895a36fe853a0fd
Author: Aaron Trevena <ast at bestpractical.com>
Date:   Mon Jun 8 18:51:06 2020 +0100

    Reinstate "Incident"/"Launch Investigation" page menu
    
    Reinstated tabbed switching view between incident and investigation
    Fixed passing results to FilterRTAddresses as array when should be arrayref

diff --git a/html/RTIR/Incident/Create.html b/html/RTIR/Incident/Create.html
index bcde447d..5a434153 100644
--- a/html/RTIR/Incident/Create.html
+++ b/html/RTIR/Incident/Create.html
@@ -47,6 +47,7 @@
 %# END BPS TAGGED BLOCK }}}
 <& /RTIR/Elements/Header,
     Title => $Title,
+    onload => "function () { hide('ticket-create-investigation') }",
 &>
 <& /Elements/Tabs &>
 
@@ -498,7 +499,7 @@ if ( $CreateWithInvestigation ) {
                 InvestigationCc => 'Cc',
                 InvestigationAdminCc => 'AdminCc',
             },
-            results => @results,
+            results => \@results,
         );
 }
 
@@ -561,6 +562,21 @@ else {
     $SubmitLabel = loc('Create');
 }
 
+PageMenu->child(
+    incident => raw_html =>
+        q{<a href="#incident"}
+        . q{onclick="return switchVisibility('ticket-create-incident','ticket-create-investigation');"}
+        . q{>} . loc('Incident') . q{</a>}
+ );
+
+PageMenu->child(
+    investigation => raw_html =>
+        q[<a href="#investigation"]
+        . q[ onclick="return switchVisibility('ticket-create-investigation','ticket-create-incident');"]
+        . q[>] . loc('Launch Investigation') . q[</a>]
+    );
+
+
 unless ( exists $ARGS{'Content'} ) {
     my $Transactions;
     if ( $SplitObj ) {

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


More information about the rt-commit mailing list