[Koha-bugs] [Bug 17944] Remove the sql code from itemtypes.pl administrative perl script
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jan 31 11:21:14 CET 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17944
Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jonathan.druart at bugs.koha-c
| |ommunity.org
--- Comment #15 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Can I suggest to create a method in Koha::ItemType (something like ->is_used),
which would return Koha::Items->search({ itype => $itemtype_code })->count +
Koha::Biblioitems->search({ itemtype => $itemtype_code })->count
That way we could provide tests for this change.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list