[Rt-commit] rt branch, 4.4/copy-lifecycle-before-modify, repushed

Jim Brandt jbrandt at bestpractical.com
Tue Jul 24 17:19:23 EDT 2018


The branch 4.4/copy-lifecycle-before-modify was deleted and repushed:
       was 068cc2e5168bbc7525e21d31790c62102ae89d1a
       now f4d28029fdfd1148558ba944a3163caeadb58390

1: 068cc2e51 ! 1: f4d28029f Copy lifecycle array before iterating and possibly modifying
    @@ -18,7 +18,7 @@
              @{ $self->{'data'}{'actions'} };
      
          # skip '* -> x' if there is '$from -> x'
    -+    my @temp; # Create a copy for the inner grep since we modify in the loop
    ++    my @temp = @res; # Create a copy for the inner grep since we modify in the loop
          foreach my $e ( grep $_->{'from'} eq '*', @res ) {
     -        $e = undef if grep $_->{'from'} ne '*' && $_->{'to'} eq $e->{'to'}, @res;
     +        $e = undef if grep $_->{'from'} ne '*' && $_->{'to'} eq $e->{'to'}, @temp;



More information about the rt-commit mailing list