Browse files

Remove asset from workflow on "check in and revert".

Only when it was just fetched from the library. This was the behavior in 1.10, but was broken sometime since the by a poor selection of variable names. [#253 state:resolved]
  • Loading branch information...
1 parent 6367182 commit c1177aa0590fd4d8254c2a946db5c3e7f6fedc83 @theory theory committed Aug 5, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Bric/App/Callback/Util/Asset.pm
View
6 lib/Bric/App/Callback/Util/Asset.pm
@@ -31,10 +31,10 @@ sub cancel_checkout {
my ($desks, $cos) = (0, 0);
while (@events && $events[0]->get_key_name ne "$kn\_add_workflow") {
- my $kn = shift(@events)->get_key_name;
- if ($kn eq "$kn\_moved") {
+ my $ekn = shift(@events)->get_key_name;
+ if ($ekn eq "$kn\_moved") {
$desks++;
- } elsif ($kn eq "$kn\_checkout") {
+ } elsif ($ekn eq "$kn\_checkout") {
$cos++
}
}

0 comments on commit c1177aa

Please sign in to comment.