]> git.koha-community.org Git - koha.git/commit
Bug 29859: Use iterator instead of as_list
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 12 Jan 2022 14:40:36 +0000 (15:40 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 10 Feb 2022 01:36:23 +0000 (15:36 -1000)
commitd02e91f2694b7642282e124a871a8b6ebcde1055
treef3aeeeeda5f796b022eb58efaf55da234627b6db
parent9bf19f628ac444fe29f7817b807c872af894331b
Bug 29859: Use iterator instead of as_list

On bug 29844 we decided to remove wantarray from Koha::Objects->search.
Reviewing the difference occurrences I found some unnecessary uses of ->as_list,
where iterators should be used instead.

This patch only removes the obvious places, not the tricky ones.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
60 files changed:
C4/Overdues.pm
Koha/Acquisition/Currency.pm
Koha/AudioAlerts.pm
Koha/Holds.pm
Koha/Library/Group.pm
acqui/addorderiso2709.pl
acqui/basket.pl
acqui/basketheader.pl
acqui/duplicate_orders.pl
acqui/histsearch.pl
acqui/lateorders.pl
acqui/neworderempty.pl
acqui/supplier.pl
acqui/transferorder.pl
admin/authorised_values.pl
admin/branches.pl
admin/item_circulation_alerts.pl
admin/itemtypes.pl
admin/marc_subfields_structure.pl
admin/sms_providers.pl
catalogue/item-export.pl
catalogue/itemsearch.pl
cataloguing/editor.pl
circ/circulation.pl
circ/transfers_to_send.pl
clubs/clubs.pl
koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/sms_providers.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/transfers_to_send.tt
koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/apikeys.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt
members/apikeys.pl
members/boraccount.pl
members/maninvoice.pl
members/members-home.pl
members/moremember.pl
misc/cronjobs/reconcile_balances.pl
opac/opac-basket.pl
opac/opac-downloadcart.pl
opac/opac-downloadshelf.pl
opac/opac-memberentry.pl
opac/opac-messaging.pl
opac/opac-search.pl
opac/opac-shelves.pl
reports/acquisitions_stats.pl
reports/borrowers_stats.pl
serials/claims.pl
serials/subscription-detail.pl
suggestion/suggestion.pl