]> git.koha-community.org Git - koha.git/commit
Bug 30275: (follow-up) Drop renewer_id constraint
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 28 Apr 2022 08:28:50 +0000 (09:28 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 5 Jul 2022 12:46:18 +0000 (09:46 -0300)
commitf8c91602847cefc1ccc7d031bd71dc567fd13b03
tree3e9f718dbbfa9155d2cc9656e42a99ab5222cff2
parent61e41c4c41a89a6b196edeeacff0f25a8a97ff15
Bug 30275: (follow-up) Drop renewer_id constraint

This patch fixes some unit tests by ensureing we set a valid userid for
mock userenv setting so that the foreign key constraint doesn't fail and
it also removes the exception class and check for renewer_id from the
store method as, for example with autorenewals, the renewal may not have
been triggered by a actual user.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Circulation.pm
Koha/Checkouts/Renewal.pm
Koha/Exceptions/Checkouts/Renewals.pm [deleted file]
t/db_dependent/Circulation.t
t/db_dependent/Koha/Account/Line.t