Koha/acqui
Jonathan Druart 0310e973a4 Bug 10921: Prevent an order from a closed basket to be edited
We don't allow editing of orders that are part of a closed basket, but
we don't enforce the rule in the controller file.

This patch use output_and_exit to stop the script and display an error
to the end user.

Test plan:
Create a basket, add an order
On the basket view you see the "Modify" link, open it in a separate tab
=> You can edit the basket
Keep this tab open, get back to the other one and close the basket
Reload the tab with the order edition form
=> You cannot longer edit the basket

QA: Do we need a check in addorder.pl as well?

Signed-off-by: Henry Bolshaw <bolshawh@parliament.uk>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-09-18 11:49:29 +02:00
..
acqui-home.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
add_user_search.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
addorder.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
addorderiso2709.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
ajax-getauthvaluedropbox.pl
basket.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
basketgroup.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
basketheader.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
booksellers.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
cancelorder.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
check_budget_total.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
check_uniqueness.pl Bug 23463: Replace SearchItemsByField by SearchItems 2020-03-23 09:26:09 +00:00
duplicate_orders.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
edi_ean.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
edifactmsgs.pl Bug 23682: Fix use Koha::Plugins::Handler statements 2020-09-03 15:00:48 +02:00
edimsg.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
finishreceive.pl Bug 23596: Edit suggestion's reason when receiving 2020-04-14 16:30:16 +01:00
histsearch.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
invoice-files.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
invoice.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
invoices.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
lateorders-export.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
lateorders.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
modordernotes.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
neworderempty.pl Bug 10921: Prevent an order from a closed basket to be edited 2020-09-18 11:49:29 +02:00
newordersubscription.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
newordersuggestion.pl
ordered.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
orderreceive.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
parcel.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
parcels.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
showorder.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
spent.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
supplier.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
transferorder.pl
uncertainprice.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
updatesupplier.pl
z3950_search.pl