Bug 36193: Fix acq receiving
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 4 Mar 2024 20:44:59 +0000 (17:44 -0300)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 12 Mar 2024 16:47:28 +0000 (17:47 +0100)
commit65a434928869a06d56723b9431299f381da3f634
tree9402ce52ac35387a0ce09d861a48165c25c27946
parentb7c6c0b502e6c5904e154c514d1533904061f03a
Bug 36193: Fix acq receiving

This patch addresses the CSRF error when receiving in acquisitions.

To test:
1. Have at least one order to receive
2. Follow the steps to receive them
3. Have the logs open:
   $ ktd --shell
  k$ tail -f /var/log/koha/kohadev/*.log
4. Click to confirm receipt
=> FAIL: An error modal is displayed
=> FAIL: There's an error about missing CSRF token in POST
5. Apply this patch
6. Reload everything:
  k$ restart_all
7. Repeat 1-4
=> SUCCESS: Receipt works :-D
=> SUCCESS: No error log
8. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
acqui/finishreceive.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt