[Rt-commit] rt branch, 4.2/add-checks-failure-reference, created. rt-4.2.12-141-gb352d4b

Jim Brandt jbrandt at bestpractical.com
Mon Jun 27 15:20:22 EDT 2016


The branch, 4.2/add-checks-failure-reference has been created
        at  b352d4b6bd0fce8c689351d21c23727cbd994e20 (commit)

- Log -----------------------------------------------------------------
commit b352d4b6bd0fce8c689351d21c23727cbd994e20
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Mon Jun 27 15:20:21 2016 -0400

    Pass checks_failure as a reference to allow for updates

diff --git a/share/html/Ticket/Update.html b/share/html/Ticket/Update.html
index d0f2b9b..519e655 100644
--- a/share/html/Ticket/Update.html
+++ b/share/html/Ticket/Update.html
@@ -290,8 +290,11 @@ if ( $ARGS{'SubmitTicket'} ) {
     }
 }
 my $skip_update = 0;
+# Keep checks_failure param for backward compatibility. checks_failure_ref allows
+# a check in the callback to report back.
 $m->callback( CallbackName => 'BeforeUpdate', ARGSRef => \%ARGS, skip_update => \$skip_update,
-              checks_failure => $checks_failure, results => \@results, TicketObj => $TicketObj );
+              checks_failure => $checks_failure, checks_failure_ref => \$checks_failure,
+              results => \@results, TicketObj => $TicketObj );
 
 if ( !$checks_failure && !$skip_update && exists $ARGS{SubmitTicket} ) {
     $m->callback( Ticket => $TicketObj, ARGSRef => \%ARGS, CallbackName => 'BeforeDisplay' );

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


More information about the rt-commit mailing list