Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
Marcel de Rooy 2a3ba5f825
Bug 29658: Fix crash on cancelling cancelled order
Found this crash in our 20.11 logs:
Cannot insert order: Mandatory parameter biblionumber is missing at /usr/share/koha/acqui/cancelorder.pl line 60.
 at /usr/share/perl/5.28/Carp.pm line 289
        Carp::croak('Cannot insert order: Mandatory parameter biblionumber is missing') called at /usr/share/koha/Koha/Acquisition/Order.pm line 79
        Koha::Acquisition::Order::store('Koha::Acquisition::Order=HASH(0x55f3760e2860)') called at /usr/share/koha/Koha/Acquisition/Order.pm line 189
        Koha::Acquisition::Order::cancel('Koha::Acquisition::Order=HASH(0x55f3760e2860)', 'HASH(0x55f375a17ec0)') called at /usr/share/koha/acqui/cancelorder.pl line 60

Not sure how to reproduce this one as it happened. But might be related to repeated clicking, backspacing etc.

Test plan:
Create a new basket and order.
Open this same basket in two browser tabs.
Cancel the order line (delete catalog record) in tab 1.
Go to second tab, try again.
Without this patch, it will crash. With this patch, an error message.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-09-12 16:14:47 -03:00
..
csv Bug 28327: Unify CSV delimiter special behavior for tabulation 2022-08-19 15:53:12 -03:00
acqui-home.tt Bug 30938: Convert ColumnSettings to TableSettings 2022-06-17 10:29:12 -03:00
addorder.tt Bug 26703: modules and modules/acqui folders 2021-04-21 11:16:33 +02:00
addorderiso2709.tt Bug 30389: Switch to Bootstrap tabs on the page for adding orders from MARC file 2022-07-29 16:09:45 -03:00
ajax.tt
basket.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
basketgroup.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
basketheader.tt Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
booksellers.tt Bug 31377: Add internal note column to booksellers.tt 2022-08-22 13:18:21 -03:00
cancelorder.tt Bug 29658: Fix crash on cancelling cancelled order 2022-09-12 16:14:47 -03:00
duplicate_orders.tt Bug 29648: Duplicate orders view - no change 2022-04-27 11:20:43 -10:00
edi_ean.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
edifactmsgs.tt Bug 26703: modules and modules/acqui folders 2021-04-21 11:16:33 +02:00
edimsg.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
histsearch.tt Bug 29648: Order search view - normal 2022-04-27 11:20:43 -10:00
invoice-files.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
invoice.tt Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
invoices.tt Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
lateorders.tt Bug 29648: Late orders view - normal 2022-04-27 11:20:43 -10:00
modordernotes.tt Bug 26703: modules and modules/acqui folders 2021-04-21 11:16:33 +02:00
neworderempty.tt Bug 31388: Add select2 to fund selection in new order form 2022-08-22 13:36:16 -03:00
neworderempty_duplicate.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
newordersubscription.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
newordersuggestion.tt Bug 23991: Move SearchSuggestion to Koha::Suggestions 2022-06-27 12:30:28 -03:00
ordered.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
orderreceive.tt Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
parcel.tt Bug 31435: (follow-up) Make kohaTable calls consistent 2022-09-07 12:08:01 -07:00
parcels.tt Bug 30718: (QA follow-up) KohaDates filter on inputs 2022-08-19 08:26:40 -03:00
showorder.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
spent.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
supplier.tt Bug 31017: Update field name to 'type' 2022-08-19 16:15:15 -03:00
transferorder.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
uncertainprice.tt Bug 10086: (QA follow-up) Fix TT filters 2022-08-09 08:57:22 -03:00
z3950_search.tt Bug 29961: Make horizontal scroll bar always visible on acqui/z3950_search.pl 2022-06-02 14:02:30 -03:00