[rt-users] Requiring CF to be defined on resolve

Francis L Fabrizio fabrizio at uab.edu
Thu Aug 26 09:37:21 EDT 2010


> exposing check_failure in a callback is a good idea. Can you provide a
> patch for this so it will go in RT core?

This simple patch was sufficient for me:


--- /usr/local/rt/local/html/Ticket/Update.html 2010-08-26 08:25:06.000000000 -0500
+++ /usr/local/rt/share/html/Ticket/Update.html 2010-08-24 08:33:38.000000000 -0500
@@ -168,7 +168,7 @@

 my @results;

-$m->callback( Ticket => $TicketObj, ARGSRef => \%ARGS, checks_failure => \$checks_failure, results => \@results, CallbackName => 'Initial' );
+$m->callback( Ticket => $TicketObj, ARGSRef => \%ARGS, results => \@results, CallbackName => 'Initial' );

 unless($DefaultStatus){
     $DefaultStatus=($ARGS{'Status'} ||$TicketObj->Status());


It might make sense to also expose checks_failure in other callbacks in Update.html, but hooking in at Initial seems pretty flexible on its own.

-Fran



More information about the rt-users mailing list