]> git.koha-community.org Git - koha.git/commit
Bug 10699: add explicit return value for DeleteBranchTransferLimits()
authorKenza Zaki <kenza.zaki@biblibre.com>
Thu, 8 Aug 2013 09:40:13 +0000 (11:40 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 13 Sep 2013 17:43:58 +0000 (14:43 -0300)
commitb7e3e0efa6611be9c2f8c4e7f3bb08de49af7900
treec864430817c5e3c2bf5046ae29dcdf7359871cf1
parent41f12d9edaecb2857f8823ef59748f974a79879a
Bug 10699: add explicit return value for DeleteBranchTransferLimits()

This patch adds return values to DeleteBranchTransferLimits:
1 if a Transfer Limit is deleted
undef if no parameters is given
0E0 if a wrong parameter is given

More, it fixes and adds some tests in t/db_dependent/Circulation_transfers.t

To test :
prove t/db_dependent/Circulation_transfers.t
t/db_dependent/Circulation_transfers.t .. ok
All tests successful.
Files=1, Tests=14, 19 wallclock secs ( 0.02 usr  0.01 sys +  0.39 cusr  0.02 csys =  0.44 CPU)
Result: PASS

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Tested with patch for bug 10692 applied.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 88f15db30a9da6a24cf575759a97e8765be61ad4)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Circulation.pm
t/db_dependent/Circulation_transfers.t