Skip to content

Commit

Permalink
Merge branch '5.0/ignore-disabled-lifecycles-in-mapping-validation' i…
Browse files Browse the repository at this point in the history
…nto 5.0-trunk
  • Loading branch information
cbrandtbuffalo committed Apr 13, 2023
2 parents b64d8d4 + db90da0 commit 0acdad1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/RT/Lifecycle.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,10 @@ sub ValidateLifecycleMaps {
push @warnings, $current_user->loc( "Nonexistant lifecycle [_1] in [_2] lifecycle map", $to, $mapname )
unless $LIFECYCLES_CACHE{$to};

# Ignore mappings referring to disabled lifecycles
next if $LIFECYCLES_CACHE{$from} && $LIFECYCLES_CACHE{$from}{disabled};
next if $LIFECYCLES_CACHE{$to} && $LIFECYCLES_CACHE{$to}{disabled};

my $map = $LIFECYCLES_CACHE{'__maps__'}{$mapname};
for my $status ( keys %{$map} ) {
push @warnings, $current_user->loc( "Nonexistant status [_1] in [_2] in [_3] lifecycle map", lc $status, $from, $mapname )
Expand Down

0 comments on commit 0acdad1

Please sign in to comment.