diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 81da95a28..7fbb443d7 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -2,6 +2,7 @@ - fixed #11556: New cart doesn't work with other forms on the same page - fixed #11557: Shop credit deduction calculated incorrectly - fixed #11561: PayDriver_Cash - password help + - fixed #11541: running workflows screen 7.9.4 - We're shipping underscore.js now for its suite of extremely handy utility diff --git a/lib/Spectre/Workflow.pm b/lib/Spectre/Workflow.pm index f79e0144e..d265d13ca 100644 --- a/lib/Spectre/Workflow.pm +++ b/lib/Spectre/Workflow.pm @@ -295,7 +295,8 @@ sub getJsonStatus { my %output; if ($sitename) { #must have entry for each queue %output = %queues; - foreach my $instance ($self->getInstances) { + INSTANCE: foreach my $instance ($self->getInstances) { + next INSTANCE unless $instance->{sitename} eq $sitename; my $queue = ucfirst($instance->{status}); push @{$output{$queue}}, [$instance->{workingPriority}, $instance->{instanceId}, $instance]; }