[Rt-commit] rtir branch 5.0/work-with-timetracking created. 5.0.1-23-gb5360eed

BPS Git Server git at git.bestpractical.com
Fri Oct 29 21:04:36 UTC 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rtir".

The branch, 5.0/work-with-timetracking has been created
        at  b5360eed7d9f29781fe603311b818bce20403883 (commit)

- Log -----------------------------------------------------------------
commit b5360eed7d9f29781fe603311b818bce20403883
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Sat Oct 30 00:29:35 2021 +0800

    Support to edit transaction custom fields on incident reply page

diff --git a/html/RTIR/Incident/Elements/ReplyForm b/html/RTIR/Incident/Elements/ReplyForm
index 109139f5..56cbeeca 100644
--- a/html/RTIR/Incident/Elements/ReplyForm
+++ b/html/RTIR/Incident/Elements/ReplyForm
@@ -113,6 +113,7 @@
   </div>
 </div>
 
+<& /Ticket/Elements/EditTransactionCustomFields, %ARGS, TicketObj => $TicketObj, QueueObj => $QueueObj, LabelCols => 2 &>
 <& /RTIR/Elements/UpdateData, %ARGS, Ticket => $TicketObj, QueueObj => $QueueObj, Action => $Action &>
 
 </&>

commit dce54e9553ae4dc4fce3a10607b04331cee06af5
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Oct 29 22:58:19 2021 +0800

    Call ProcessUpdateMessage to process UpdateTimeWorked on incident display page
    
    When clicking "Add" in the "Add to time worked" row(from TimeTracking
    extension) on display page, "UpdateTimeWorked" field is submitted, which
    is handled by ProcessUpdateMessage function.

diff --git a/html/RTIR/Incident/Display.html b/html/RTIR/Incident/Display.html
index 914ddcb5..7656f7f3 100644
--- a/html/RTIR/Incident/Display.html
+++ b/html/RTIR/Incident/Display.html
@@ -452,6 +452,7 @@ if ( $ARGS{'Action'} && $ARGS{'Action'} =~ /^(Steal|Kill|Take|SetTold)$/ )
 
 
 unless( $new_ticket ) {
+    push @results, ProcessUpdateMessage( ARGSRef => \%ARGS, TicketObj => $TicketObj );
     push @results, ProcessTicketBasics( ARGSRef => \%ARGS, TicketObj => $TicketObj );
     push @results, ProcessObjectCustomFieldUpdates( ARGSRef => \%ARGS, Object => $TicketObj );
     push @results, ProcessTicketDates( ARGSRef => \%ARGS, TicketObj => $TicketObj );

commit 7c85f38f07c108c35bdf18b899ded7647ad061dd
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Oct 29 22:57:38 2021 +0800

    Add EndOfBasics callback to ticket display pages
    
    This is for TimeTracking extension so it can insert "Add to time worked"
    row accrodingly.

diff --git a/html/RTIR/Display.html b/html/RTIR/Display.html
index ad4b7a26..addc8d9c 100644
--- a/html/RTIR/Display.html
+++ b/html/RTIR/Display.html
@@ -127,6 +127,7 @@
     </div>
 
     <& /Elements/ShowCustomFields, Grouping => 'Basics', Object => $Ticket, Table => 0 &>
+%   $m->callback( %ARGS, TicketObj => $Ticket, CallbackName => 'EndOfBasics' );
   </div>
 % }
 % if ($modify_behavior ne 'hide') {
diff --git a/html/RTIR/Incident/Display.html b/html/RTIR/Incident/Display.html
index 6e192d6c..914ddcb5 100644
--- a/html/RTIR/Incident/Display.html
+++ b/html/RTIR/Incident/Display.html
@@ -142,6 +142,7 @@
       </div>
 
   <& /Elements/ShowCustomFields, Grouping => 'Basics', Object => $TicketObj, Table => 0 &>
+%     $m->callback( %ARGS, TicketObj => $TicketObj, CallbackName => 'EndOfBasics' );
 
     </div>
 % }

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


hooks/post-receive
-- 
rtir


More information about the rt-commit mailing list