From 6147f2b86925af11b095ca0a446cd2f3d1ed5fcd Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Thu, 26 May 2016 20:39:40 -0700 Subject: [PATCH] Fix bug: $type from loop should be used! We weren't using the type variable from the loop! --- scripts/t-shirt-label-print.plx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/t-shirt-label-print.plx b/scripts/t-shirt-label-print.plx index 6435e28..20b423d 100644 --- a/scripts/t-shirt-label-print.plx +++ b/scripts/t-shirt-label-print.plx @@ -79,7 +79,7 @@ sub sortFunction($$) { foreach my $id (sort { sortFunction($a, $b); } @supporterIds) { my $sizeNeeded; foreach my $type (qw/t-shirt-0 t-shirt-1/) { - my $request = $sp->getRequest({ donorId => $id, requestType => 't-shirt-0', ignoreFulfilledRequests => 1 }); + my $request = $sp->getRequest({ donorId => $id, requestType => $type, ignoreFulfilledRequests => 1 }); if (defined $request and defined $request->{requestType}) { $sizeNeeded = $request->{requestConfiguration}; last;