[Bps-public-commit] RT-Extension-MandatoryOnTransition branch, check-for-to-field, repushed

Craig Kaiser craig at bestpractical.com
Tue Jul 2 13:38:15 EDT 2019


The branch check-for-to-field was deleted and repushed:
       was af1c47963cb8a833cc0191593f4a49cbff385905
       now cdb9b2e419f1137fb557cd121c5918baa5f09509

1:  af1c479 ! 1:  cdb9b2e Check if we have a 'To' field before checking mandatory conditions
    @@ -5,19 +5,6 @@
         If there is no 'To' field then a error will default to complaining that
         some field(s) are mandatory on queue change, even when the change being
         made is not a queue change.
    -
    -diff --git a/html/Callbacks/RT-Extension-MandatoryOnTransition/Ticket/Update.html/BeforeUpdate b/html/Callbacks/RT-Extension-MandatoryOnTransition/Ticket/Update.html/BeforeUpdate
    ---- a/html/Callbacks/RT-Extension-MandatoryOnTransition/Ticket/Update.html/BeforeUpdate
    -+++ b/html/Callbacks/RT-Extension-MandatoryOnTransition/Ticket/Update.html/BeforeUpdate
    -@@
    - my $errors_ref = RT::Extension::MandatoryOnTransition->CheckMandatoryFields(
    -     ARGSRef => $ARGSRef,
    -     Ticket  => $TicketObj,
    --    To      => $ARGSRef->{'Status'},
    -+    To      => $ARGSRef->{'Status'} || $ARGSRef->{'DefaultStatus'},
    - );
    - 
    - if (@$errors_ref) {
     
     diff --git a/lib/RT/Extension/MandatoryOnTransition.pm b/lib/RT/Extension/MandatoryOnTransition.pm
     --- a/lib/RT/Extension/MandatoryOnTransition.pm



More information about the Bps-public-commit mailing list