Fix bug: $type from loop should be used!
We weren't using the type variable from the loop!
This commit is contained in:
		
							parent
							
								
									6a6ec1fca2
								
							
						
					
					
						commit
						6147f2b869
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Bradley M. Kuhn
						Bradley M. Kuhn