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

Jim Brandt jbrandt at bestpractical.com
Mon Jun 27 15:37:43 EDT 2016


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

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

    Add a comment to clarify usage of skip_update in BeforeUpdate

diff --git a/share/html/Ticket/Update.html b/share/html/Ticket/Update.html
index d0f2b9b..f9c75fe 100644
--- a/share/html/Ticket/Update.html
+++ b/share/html/Ticket/Update.html
@@ -289,6 +289,9 @@ if ( $ARGS{'SubmitTicket'} ) {
         $ARGS{ $field } = join ', ', map $_->format, grep defined, @emails;
     }
 }
+
+# $skip_update is provided below by reference to allow a final check to stop
+# the update and print a message for the user to fix something.
 my $skip_update = 0;
 $m->callback( CallbackName => 'BeforeUpdate', ARGSRef => \%ARGS, skip_update => \$skip_update,
               checks_failure => $checks_failure, results => \@results, TicketObj => $TicketObj );

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


More information about the rt-commit mailing list