https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40034
David Nind <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #182909|0 |1 is obsolete| | --- Comment #4 from David Nind <[email protected]> --- Created attachment 182914 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=182914&action=edit Bug 40034: Only check notforloan on itemtype if it exists This patch makes the code in `CheckReserves` survive the non-existence of the referenced item type in the `items` table for the passed item. To test: 1. Apply the regression tests 2. Run: $ ktd --shell k$ prove t/db_dependent/Reserves.t => FAIL: Tests explode like this: ``` Can't call method "notforloan" on an undefined value at /kohadevbox/koha/C4/Reserves.pm line 870. ``` 3. Apply this patch 4. Repeat 2 => SUCCESS: Tests pass! 5. Sign off :-D Signed-off-by: David Nind <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
