Koha-clms/acqui
Kyle M Hall 839f3492bc
Bug 42571: Sending EDI order results in variable not available warnings
The warnings look like:

[2026/05/08 15:02:42] [32918] [WARN] Variable "@messages" is not available at /usr/share/koha/intranet/cgi-bin/acqui/basket.pl line 698.
[2026/05/08 15:02:42] [32918] [WARN] Variable "$op" is not available at /usr/share/koha/intranet/cgi-bin/acqui/basket.pl line 704.

Note in the fix, we are switching to the "our" keyword. When we declare
things with "our", and we run this under plack, those variables and
values persist across multiple requests! Due to this behavior we always
need to reinitialize anything that uses "our" unless we specifically
want that behavior ( like caching ).

Test plan:
1) Send an EDI order, note the warnings in the logs
2) Apply this patch
3) Restart all the things!
4) Send another EDI order, note the warnings are gone!

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-07-01 09:34:44 +00:00
..
acqui-home.pl
…
addorder.pl
…
addorderiso2709.pl Bug 42764: Fix spelling errors across the codebase 2026-06-03 16:09:04 +00:00
ajax-getauthvaluedropbox.pl
…
basket.pl Bug 42571: Sending EDI order results in variable not available warnings 2026-07-01 09:34:44 +00:00
basketgroup.pl
…
basketheader.pl
…
booksellers.pl
…
cancelorder.pl
…
check_budget_total.pl
…
check_uniqueness.pl
…
duplicate_orders.pl
…
edifactmsgs.pl
…
edimsg.pl Bug 40383: Add JSON representation to Koha::Edifact and JSON download to edimsg.pl 2026-03-26 14:21:18 +01:00
finishreceive.pl
…
histsearch.pl Bug 41454: Remove unused dbh calls 2026-04-15 09:14:51 -06:00
invoice-files.pl Bug 42080: (follow-up) limit data sent to libmagic to 100 characters 2026-06-26 11:56:58 +00:00
invoice.pl
…
invoices.pl
…
lateorders-export.pl
…
lateorders.pl
…
moddeliverydate.pl
…
modordernotes.pl
…
neworderempty.pl
…
newordersubscription.pl
…
newordersuggestion.pl Bug 39726: Remove op connectDuplicate from acqui/newordersuggestions.pl 2026-06-19 15:39:10 +00:00
ordered.pl
…
orderreceive.pl
…
parcel.pl
…
parcels.pl
…
showorder.pl
…
spent.pl
…
transferorder.pl
…
uncertainprice.pl
…
vendor_issues.pl
…
vendors.pl
…
z3950_search.pl
…