[Rt-commit] rt branch, 5.0/create-tickets-skip-flag, repushed

Craig Kaiser craig at bestpractical.com
Thu Jun 3 14:00:03 EDT 2021


The branch 5.0/create-tickets-skip-flag was deleted and repushed:
       was 5d67ec82cfedcebd16f129fc5a2500858d9ebc3e
       now f1f1aa1bd20a167b0c085984575ccfcfde8fa28d

1: 5d67ec82cf ! 1: f1f1aa1bd2 Allow skipping of create ticket blocks through passing arg
    @@ -9,10 +9,19 @@
     --- a/lib/RT/Action/CreateTickets.pm
     +++ b/lib/RT/Action/CreateTickets.pm
     @@
    + than C<my>. Just as with other RT templates, you can also include
    + Perl code in the template sections using C<{}>.
    + 
    ++=head3 SkipCreate
    ++
    + =head2 Acceptable Fields
    + 
    + A complete list of acceptable fields:
    +@@
             CF-name           => custom field value
             CustomField-name  => custom field value
      
    -+       Skip              => 1 - Boolean flag to decide to skip this create ticket block.
    ++       SkipCreate        => 0/1, if true, skip this create ticket block
     +
      Fields marked with an C<*> are required.
      
    @@ -21,7 +30,7 @@
              # Make sure we have at least the minimum set of
              # reasonable data and do our thang
      
    -+        if ( $ticketargs->{'Skip'} ) {
    ++        if ( $ticketargs->{'SkipCreate'} ) {
     +            RT::Logger->debug( "Skip flag found for template $template_id, skipping" );
     +            next;
     +        }
    @@ -33,7 +42,7 @@
              FinalPriority   => $args{'finalpriority'} || 0,
              SquelchMailTo   => $args{'squelchmailto'},
              Type            => $args{'type'},
    -+        Skip            => $args{'skip'},
    ++        SkipCreate      => $args{'skipcreate'} || 0,
          );
      
          if ( $args{content} ) {



More information about the rt-commit mailing list