From e4dcfd11d53a2bb9248798ab09a965999ec2b338 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 30 Dec 2015 03:57:19 -0800 Subject: [PATCH] _verifyRequestTypeId =>_lookupRequestTypeById I found need to have _verifyRequestTypeId() actually return the request_type in a reimplementation of getRequest() that I'm working on, so I've made this change. --- Supporters/lib/Supporters.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Supporters/lib/Supporters.pm b/Supporters/lib/Supporters.pm index 608cbcc..1eb1a8e 100644 --- a/Supporters/lib/Supporters.pm +++ b/Supporters/lib/Supporters.pm @@ -968,7 +968,7 @@ sub _getOrCreateRequestType($$) { } else { my $id = $params->{requestTypeId}; die "_getOrCreateRequestType(): invalid requestTypeId, \"$id\"" - unless $self->_verifyRequestTypeId($id); + unless defined $self->_lookupRequestTypeById($id); } delete $params->{requestType}; }