From 5458c0fbc48f6d4e7c21ae1426440cc551bc953a Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Fri, 9 Dec 2016 13:47:18 -0800 Subject: [PATCH] holdRequest: 2 minor bug fixes on parameter names. I should be more standardized on these parameters and also write tests to find this stuff. --- Supporters/lib/Supporters.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Supporters/lib/Supporters.pm b/Supporters/lib/Supporters.pm index 54c55d9..efdaf92 100644 --- a/Supporters/lib/Supporters.pm +++ b/Supporters/lib/Supporters.pm @@ -1131,7 +1131,7 @@ sub getRequest($$;$) { if (defined $holdReq and defined $holdReq->{$requestId} and defined $holdReq->{$requestId}{id}) { return undef if $ignoreHeldRequests and ($TODAY le $holdReq->{$requestId}{release_date}); $rsp->{holdDate} = $holdReq->{$requestId}{hold_date}; - $rsp->{releaseDate} = $holdReq->{$requestId}{release_date}; + $rsp->{holdReleaseDate} = $holdReq->{$requestId}{release_date}; $rsp->{holder} = $holdReq->{$requestId}{who}; $rsp->{heldBecause} = $holdReq->{$requestId}{why}; } @@ -1392,7 +1392,7 @@ sub holdRequest($$) { "request_hold(request_id, who, why, release_date, hold_date) " . "VALUES(?, ?, ? , ? , date('now'))"); - $sth->execute($requestId, $params->{who}, $params->{heldBecause}, $params->{releaseDate}); + $sth->execute($requestId, $params->{who}, $params->{heldBecause}, $params->{holdReleaseDate}); $sth->finish; $self->_commit; $holdRecord = $self->dbh()->selectall_hashref($holdLookupSql, "request_id");