[Koha-bugs] [Bug 13934] Check in fails on master "Can't bless non-reference at .../ItemType.pm Line 64"

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 2 06:49:08 CEST 2015


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

--- Comment #2 from M. Tompsett <mtompset at hotmail.com> ---
Comment on attachment 37412
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37412
Bug 13934: C4::ItemType->get should return undef if no parameter given

Review of attachment 37412:
 --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=13934&attachment=37412)
-----------------------------------------------------------------

::: C4/ItemType.pm
@@ +99,5 @@
>  
>  sub get {
>      my ($class, $itemtype) = @_;
> +
> +    return unless $itemtype;

Hypothetical question: Could not someone do something crazy like have an
itemtype code of 0?

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


More information about the Koha-bugs mailing list