Bug: this should not use t-shirt-0 every time!

I am not sure why this had t-shirt-0 repeated every time, but it can't
possibly be right.
This commit is contained in:
Bradley M. Kuhn 2016-10-20 11:17:51 -07:00
parent dc5f959259
commit fece5bdb4a

View file

@ -43,7 +43,7 @@ close TEX_FILE;
foreach my $id (sort keys %idsSent) { foreach my $id (sort keys %idsSent) {
my $request; my $request;
foreach my $type (qw/t-shirt-0 t-shirt-1/) { foreach my $type (qw/t-shirt-0 t-shirt-1/) {
$request = $sp->getRequest({ donorId => $id, requestType => 't-shirt-0', ignoreFulfilledRequests => 1 }); $request = $sp->getRequest({ donorId => $id, requestType => $type, ignoreFulfilledRequests => 1 });
if (defined $request and defined $request->{requestType}) { if (defined $request and defined $request->{requestType}) {
if ($request->{requestConfiguration} ne $idsSent{$id}) { if ($request->{requestConfiguration} ne $idsSent{$id}) {
my $out = "WARNING: not fufilling $id request for $request->{requstConfiguration} because we sent wrong size of $idsSent{$id}!\n"; my $out = "WARNING: not fufilling $id request for $request->{requstConfiguration} because we sent wrong size of $idsSent{$id}!\n";