Koha-clms/Koha/Acquisition
Marcel de Rooy f85440e677 Bug 32472: [21.11] Force scalar context on acqorder->items
This resolves a crash like
    The method Koha::Item->count is not covered by tests!
on the template construction
    [% IF ( order.items.count ) %]
in koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt.

Test plan (21.11):
Receive an order line under this condition: quantityreceived>0 with
items attached to the order line.
Note: Should be possible, comes from production logs.

Look for list context on ->items called from acqorder.
The result of git grep "\->items" is too wide but we could theoretically
miss an occurence with git grep "order.*\->items". With order.* we do
catch $new_order_object->items..

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi>
2023-03-06 14:43:49 +00:00
..
Bookseller Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Invoice Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Order Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Basket.pm Bug 28640: Expose EDI Status on basket details page 2021-07-26 12:46:32 +02:00
BasketGroup.pm Bug 24461: Add to_api_mapping to Koha::Acquisition::BasketGroup 2020-03-24 11:32:37 +00:00
BasketGroups.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Baskets.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Bookseller.pm Bug 32472: Fix wrong POD for bookseller->subscriptions 2023-03-06 14:43:49 +00:00
Booksellers.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Budget.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Budgets.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Currencies.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Currency.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Fund.pm Bug 15329: Add new column for budget to the late orders table 2020-11-04 12:59:34 +01:00
Funds.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Invoice.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Invoices.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Order.pm Bug 32472: [21.11] Force scalar context on acqorder->items 2023-03-06 14:43:49 +00:00
Orders.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00