[Koha-bugs] [Bug 21761] Koha::Object supports passing through 'update' which means we can side step 'set' + 'store'

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 3 16:06:50 CET 2019


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

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|koha-bugs at lists.koha-commun |martin.renvoize at ptfs-europe
                   |ity.org                     |.com

--- Comment #15 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Jonathan Druart from comment #12)
> To investigate:
> 
> +    $itemtype = $builder->build_object( { class => 'Koha::ItemTypes' });
> +    $itemtype->update({ notforloan => "" });
> 
> These two lines will warn "Argument "" isn't numeric in numeric eq (==)"

I did not manage to remove this warning. However it highlights a misuse:
setting a string to an integer field. As we are going to deal in ->store I
think that's fine.

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


More information about the Koha-bugs mailing list