Skip to content

Commit

Permalink
When a version tag is approved or denied, run spectre right now. Fixe…
Browse files Browse the repository at this point in the history
…s bug #11671.
  • Loading branch information
perlDreamer committed Jun 28, 2010
1 parent 3ea4ab8 commit 8d61e5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog/7.x.x.txt
Expand Up @@ -10,6 +10,7 @@
- fixed #11667: Shop: unable to remove item from Cart
- fixed #11550: Pending assets in the clipboard or trash are not visible from the approval screen
- fixed #11678: Story Archive leaks version tags
- fixed #11671: Approving version tags takes up 1 to hour to take affect.


7.9.7
Expand Down
4 changes: 3 additions & 1 deletion lib/WebGUI/Workflow/Activity/RequestApprovalForVersionTag.pm
Expand Up @@ -306,6 +306,7 @@ sub setApproved {
my $self = shift;
my $instance = shift;
$instance->setScratch( "status", "approved" );
$instance->set({}); ##Bump spectre to get it to run right now.
}

#----------------------------------------------------------------------------
Expand All @@ -325,7 +326,8 @@ sub setDenied {
my $self = shift;
my $instance = shift;
$instance->setScratch( "status", "denied" );
}
$instance->set({}); ##Bump spectre to get it to run right now.
}

#----------------------------------------------------------------------------

Expand Down

0 comments on commit 8d61e5c

Please sign in to comment.