From 693a8442125fe45edc7fede599731c42b0f387aa Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Tue, 1 Aug 2017 12:13:10 -0700 Subject: [PATCH] type list variable should be used for 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 cb0b772..1b5a6f4 100644 --- a/scripts/t-shirt-label-print.plx +++ b/scripts/t-shirt-label-print.plx @@ -89,7 +89,7 @@ if ($T_SHIRT_STYLE == 0) { foreach my $id (sort { sortFunction($a, $b); } @supporterIds) { my $sizeNeeded; - foreach my $type (qw/t-shirt-0 t-shirt-1/) { + foreach my $type (@typeList) { my $request = $sp->getRequest({ donorId => $id, requestType => $type, ignoreHeldRequests => 1, ignoreFulfilledRequests => 1 }); if (defined $request and defined $request->{requestType}) {