Permalink
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 9e1d689 commit e9584b5631e8872f856b63daab48852f021c8e37 @theory theory committed Aug 5, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 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 e9584b5

Please sign in to comment.