This is still is required; search by ID seems still broken.
This commit is contained in:
parent
bdd100540a
commit
71c0bd28aa
1 changed files with 6 additions and 1 deletions
|
@ -29,7 +29,12 @@ my $sp = new Supporters($dbh, ['none']);
|
|||
my $found = 0;
|
||||
my(@supporterIds);
|
||||
die "Can only search on id, ledgerEntityId, emailAddress" unless $CRITERION =~ /^(ledgerEntityId|emailAddress|id)$/;
|
||||
if ($CRITERION eq 'id') {
|
||||
push(@supporterIds, $SEARCH_PARAMETER);
|
||||
} else {
|
||||
@supporterIds = $sp->findDonor({$CRITERION => $SEARCH_PARAMETER });
|
||||
|
||||
}
|
||||
my @requestTypes = $sp->getRequestType();
|
||||
foreach my $id (@supporterIds) {
|
||||
$found = 1;
|
||||
|
|
Loading…
Reference in a new issue