https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17783
--- Comment #3 from Lari Taskula <lari.task...@jns.fi> --- Created attachment 58230 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58230&action=edit Bug 17783: Add Koha::Objects->single Returns one and only one object that is part of this set. Returns undef if there are no objects found. ->single is faster than ->search->next This is optimal as it will grab the first returned result without instantiating a cursor. It is useful for this Bug as we only want to select the top row of found issuing rules. To test: 1. Run t/db_dependent/Koha/Objects.t -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/