Fix looping construct in NotifyAboutLowStock activity. Fix tests.

This commit is contained in:
Colin Kuskie 2009-12-08 19:00:23 -08:00
parent 3cb7970a91
commit af20594535
2 changed files with 7 additions and 2 deletions

View file

@ -98,7 +98,7 @@ sub execute {
my $warningLimit = $self->get('warningLimit');
my $finishTime = time() + $self->getTTL;
my $expired = 0;
PRODUCT: foreach my $product ($productIterator->()) {
PRODUCT: while (my $product = $productIterator->()) {
VARIANT: foreach my $collateral ( @{ $product->getAllCollateral('variantsJSON') }) {
if ($collateral->{quantity} <= $warningLimit) {
##Build message