]> git.koha-community.org Git - koha.git/commit
Bug 10795: Improvements for GetOpenIssue in C4::Circulation
authorKenza Zaki <kenza.zaki@biblibre.com>
Wed, 28 Aug 2013 08:46:07 +0000 (10:46 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 9 Oct 2013 03:54:51 +0000 (03:54 +0000)
commitb8dbff02830429c511d860782e956e579be4bec4
tree655a1c0bb5f627bb50a267693699b2de7e1c6ef3
parent5b74a81e3d1dcb3e8a351126503605baa20241a8
Bug 10795: Improvements for GetOpenIssue in C4::Circulation

This patch adds some improvements for the routine GetOpenIssue().
Now, it verifies if the parameter is given (if not it returns undef)
and it returns $sth->fetchrow_hashref() instead of a $issue.

To test:
prove t/db_dependent/Circulation_issue.t
t/db_dependent/Circulation_issue.t .. ok
All tests successful.
Files=1, Tests=16,  2 wallclock secs ( 0.06 usr  0.01 sys +  1.09 cusr  0.07 csys =  1.23 CPU)
Result: PASS

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Comment: Same situation as the one noted in comment of
Bug 10683, test fails unless there is an issuingrule
All, All with 1 as renewals allowed.

With that condition, it succeeds

No koha-qa errors

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Circulation.pm