[Koha-bugs] [Bug 32418] CRASH: Can't call method "unblessed" on an undefined value at cataloguing/additem.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 16 12:20:47 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32418

Paul Derscheid <paul.derscheid at lmscloud.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #144640|0                           |1
        is obsolete|                            |

--- Comment #12 from Paul Derscheid <paul.derscheid at lmscloud.de> ---
Created attachment 144643
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=144643&action=edit
Bug 32418 - Can't call method 'unblessed' on an undefined value at
cataloguing/additem.pl

Check whether result of Koha::Items->find is defined before invoking unblessed.
If undef, redirect to additem op.

This uses an unlabeled block so we can add a guard clause to the 'dupeitem'
case and exit early with the 'last' keyword.

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


More information about the Koha-bugs mailing list