[Koha-bugs] [Bug 15270] Koha::Objects->find can exploded if searching for nonexistent record

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Dec 6 22:31:02 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15270

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #45262|0                           |1
        is obsolete|                            |
  Attachment #45263|0                           |1
        is obsolete|                            |

--- Comment #11 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 45438
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=45438&action=edit
[PASSED QA] Bug 15270: Make Koha::Objects->find return undef instead of
crashing

On 3.20.05, if AnonymousPatron is set to a nonexistent borrowernumber, the
about.pl crashes with

  DBIC result type  isn't of the type Borrower at
/home/koha/src/Koha/Objects.pm line 87.

This was fixed on master by
  commit 6882949b1b3bd1284e3d2877244a64edee3883ca
  Date:   Wed Apr 8 06:38:34 2015 -0400
      Bug 13967 - System preferences need a package

Test plan:
Set the AnonymousPatron pref to a nonexistent borrowernumber
Go on about.pl
Without this patch, you get the error.

Signed-off-by: Magnus Enger <magnus at libriotech.no>
Set AnonymousPatron pref to a nonexistent borrowernumber. Before the
patch, about.pl shows a nasty error. After applying the patch the
error is gone. Tests in t/db_dependent/Objects.t pass.

Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list