]> git.koha-community.org Git - koha.git/commit
Bug 26506: Fix Koha::Account::pay if called when no user is logged-in
authorMatthias Meusburger <matthias.meusburger@biblibre.com>
Tue, 22 Sep 2020 13:16:23 +0000 (15:16 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 9 Nov 2020 20:15:11 +0000 (13:15 -0700)
commit8a5898aab879989490ac1fcdb0dce0c7436e6cb5
tree8cd9f0bbe20500672b3865b6cdc3be69b15b94e2
parent1ee8f1f1c205d2c532ef028cf86a83405ba9e469
Bug 26506: Fix Koha::Account::pay if called when no user is logged-in

Currently, Koha::Account::pay will fail if no user is logged-in when it is
called.

In this case, this patch will use undef instead of 0 for $manager_id in order
to comply with the foreign key constraint on manager_id.

Signed-off-by: Magnus Enger <magnus@libriotech.no>
Biblibre and Libriotech have created a OPAC payment plugin that was
having problems because of this bug. Applying the fix in this patch
to a live server solved the problem.
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 63c93d3c114c6720100cd2b843e8989a1a0eecb7)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Account.pm