here ya go
This commit is contained in:
parent
6dd1bf331a
commit
72974abb58
1 changed files with 9 additions and 1 deletions
|
|
@ -1115,7 +1115,15 @@ sub verifyAllPrerequisites {
|
||||||
return [] unless $lastResultsSize;
|
return [] unless $lastResultsSize;
|
||||||
until ($currentResultsSize == $lastResultsSize) {
|
until ($currentResultsSize == $lastResultsSize) {
|
||||||
$currentResultsSize = $lastResultsSize;
|
$currentResultsSize = $lastResultsSize;
|
||||||
$lastResults = {%$lastResults,%{$self->verifyEventPrerequisites($lastResults)}};
|
my $newMsgLoop = [];
|
||||||
|
($lastResults,$newMsgLoop) = {%$lastResults,%{$self->verifyEventPrerequisites($lastResults,1)}};
|
||||||
|
foreach my $newMsg (@$newMsgLoop) {
|
||||||
|
my $add = 1;
|
||||||
|
foreach my $oldMsg (@$msgLoop) {
|
||||||
|
$add = 0 if $oldMsg->{productId} eq $newMsg->{productId};
|
||||||
|
}
|
||||||
|
push (@$msgLoop,$newMsg) if $update;
|
||||||
|
}
|
||||||
$lastResultsSize = scalar(keys %$lastResults);
|
$lastResultsSize = scalar(keys %$lastResults);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue