[Rt-commit] [rtir] 01/01: Include Due and Starts when splitting, if set

Jim Brandt jbrandt at bestpractical.com
Wed May 28 15:41:09 EDT 2014


This is an automated email from the git hooks/post-receive script.

jbrandt pushed a commit to branch 3.2/dates-in-split
in repository rtir.

commit b53ff34599885c6e986e1fc08d456d21d19e9fc3
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri May 9 15:45:13 2014 -0400

    Include Due and Starts when splitting, if set
    
    This commit uses RT::Date's new IsSet method, so it requires
    RT 4.2.5 or later.
---
 html/RTIR/Incident/Split.html | 5 +++++
 html/RTIR/Split.html          | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/html/RTIR/Incident/Split.html b/html/RTIR/Incident/Split.html
index 30289c3..d53c972 100644
--- a/html/RTIR/Incident/Split.html
+++ b/html/RTIR/Incident/Split.html
@@ -68,6 +68,11 @@
 my $TicketObj = LoadTicket($Split);
 $ARGS{'Split'} = $Split = $TicketObj->id;
 
+$ARGS{'Due'} = $TicketObj->DueObj->ISO(Timezone => 'user')
+    if $TicketObj->DueObj->IsSet();
+$ARGS{'Starts'} = $TicketObj->StartsObj->ISO(Timezone => 'user')
+    if $TicketObj->StartsObj->IsSet();
+
 $m->callback(CallbackName => 'Initial', %ARGS, Ticket => $TicketObj);
 </%INIT>
 
diff --git a/html/RTIR/Split.html b/html/RTIR/Split.html
index 6dbf2b9..52088e1 100644
--- a/html/RTIR/Split.html
+++ b/html/RTIR/Split.html
@@ -68,6 +68,11 @@
 my $TicketObj = LoadTicket( $Split );
 $ARGS{'Split'} = $Split = $TicketObj->id;
 
+$ARGS{'Due'} = $TicketObj->DueObj->ISO(Timezone => 'user')
+    if $TicketObj->DueObj->IsSet();
+$ARGS{'Starts'} = $TicketObj->StartsObj->ISO(Timezone => 'user')
+    if $TicketObj->StartsObj->IsSet();
+
 $m->callback(CallbackName => 'Initial', %ARGS, Ticket => $TicketObj);
 
 my $Type = RT::IR::TicketType( Ticket => $TicketObj );

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list