[Koha-bugs] [Bug 10693] CreateBranchTransferLimit's return values in C4::Circulation.pm should be more explicit
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Aug 27 22:50:32 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10693
Katrin Fischer <katrin.fischer at bsz-bw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #20159|0 |1
is obsolete| |
--- Comment #3 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 20670
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=20670&action=edit
[PASSED QA] Bug 10693: CreateBranchTransferLimit's return value in
C4::Circulation.pm should be more explicit
This patch test if the parameters $toBranch and $fromBranch are given.
If not, CreateBranchTransferLimit now returns undef.
This patch also fixes and adds some regression tests in
t/db_dependent/Circulation_transfers.t
NOTE:
Currently, we can add a transferlimit to nonexistent branches because
in the database branch_transfer_limits.toBranch
and branch_transfer_limits.fromBranch aren't foreign keys.
To test:
prove t/db_dependent/Circulation_transfers.t
t/db_dependent/Circulation_transfers.t .. ok
All tests successful.
Files=1, Tests=15, 18 wallclock secs ( 0.02 usr 0.01 sys + 0.42 cusr 0.00
csys = 0.45 CPU)
Result: PASS
Signed-off-by: Chris Cormack <chris at bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83 at web.de>
All tests and QA script pass.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list