If a sitename is passed, filter based on sitename for spectre status. Fixes bug #11541.

This commit is contained in:
Colin Kuskie 2010-05-10 09:57:17 -07:00
parent 19e497f66e
commit e6ab688751
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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];
}