Koha/circ
Andrii Nugged 12edba3773 Bug 37014: Fix after-modal-POST to transmit "not_returned" message
The bug report addresses an issue where the message "Item was not checked in" erroneously appears during the second POST after a manual or modal check-in process.

1. In circ/returns.pl:
   - Introduced a new hash `%rinot_returned` to track items not returned across pages.
   - Updated the logic to capture the "not returned" status from the query parameters.
   - Adjusted the input processing loop to include `not_returned` status.
   - Modified the section handling barcode check-ins to appropriately initialize and update the `not_returned` status.

2. returns.tt:
   - Added hidden input fields in the template to include `not_returned` status in the form submissions.

The changes ensure that the "not_returned" status is correctly tracked and displayed, preventing the erroneous message from appearing on subsequent POST requests.

1. Perform a manual check-in of an item, but make some warning modal appear: for ex., transfer: check-in the item in not home library.
2. Press OK on the modal. There will be a POST transition again to redraw the checked-in items list.
3. Verify that the "Item was not checked in" message appears erroneously near the item's row.
4. Apply the patch.
5. Repeat steps 1-3 and check that there will be no erroneous "Item was not checked in" message.

Signed-off-by: Tadeusz „tadzik” Sośnierz <tadeusz@sosnierz.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit f567d41b91)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2024-07-11 20:03:55 +00:00
..
add_message.pl Bug 29393: (QA follow-up) Tidy add_message.pl 2024-04-29 17:38:01 +02:00
article-request-slip.pl Bug 33478: Apply formatting to AR_SLIP 2024-04-26 20:15:46 +02:00
article-requests.pl
bookcount.pl
branchoverdues.pl Bug 34478: op =~ ^cud- in pl/pm - Manual cud-email => email 2024-03-01 10:57:14 +01:00
branchtransfers.pl Bug 25682: Style transfers interface to match checkin page 2024-04-29 18:53:07 +02:00
checkout-notes.pl Bug 34478: Rename action with op - circ/checkout-notes 2024-03-01 10:56:39 +01:00
circulation-home.pl
circulation.pl Bug 27753: (QA follow-up) Use librarian as resolver 2024-05-06 09:12:14 +02:00
curbside_pickups.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00
del_message.pl Bug 34478: Manual fix - add op and change link to form - members-toolbar.inc / patron_messages.inc 2024-03-01 10:57:26 +01:00
hold-transfer-slip.pl Bug 33478: Apply formatting to HOLD_SLIP 2024-04-26 20:15:41 +02:00
on-site_checkouts.pl
overdue.pl Bug 32610: Add date extended patron attribute handling to overdues report 2024-04-30 17:09:49 +02:00
pendingreserves.pl Bug 34972: (QA follow-up) Remove some ModReserveCancelAll imports 2024-05-07 15:53:43 +02:00
renew.pl Bug 34478: Add 'op' to circ/renew.pl 2024-03-01 10:58:48 +01:00
request-article.pl Bug 34478: Rename action with op - circ/request-article 2024-03-01 10:56:39 +01:00
reserveratios.pl Bug 23208: Add ability to set a default hold ratio value 2024-03-25 09:53:22 +01:00
returns.pl Bug 37014: Fix after-modal-POST to transmit "not_returned" message 2024-07-11 20:03:55 +00:00
set-library.pl Bug 36572: Fix and clean-up set library 2024-04-12 11:25:59 +02:00
transfer-slip.pl Bug 33478: Apply formatting to TRANSFERSLIP 2024-04-26 20:15:42 +02:00
transfers_to_send.pl Bug 35388: Add comment to 'Transfers to send' 2024-03-19 18:09:07 +01:00
transferstoreceive.pl
view_holdsqueue.pl
waitingreserves.pl Bug 34478: Manual fix - add ops / change confirmation forms to get - waiting_holds.inc / waitingreserves.tt 2024-03-01 10:57:25 +01:00