https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44142

--- Comment #1 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211906
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211906&action=edit
Bug 44142: Redirect circ/returns.pl to circ/checkin.pl

circ/returns.pl was removed when the check-in page moved to Vue, with
no redirect. Bookmarks, links in plugins and in the documentation, and
forms posting to it now give a 404.

Add a circ/returns.pl that sends the request on to circ/checkin.pl,
with its query string, so '?barcode=...' still prefills the barcode. A
GET gets a 301. A POST gets a 307, so it stays a POST with its body (the
check-in page checks the item in for a POST with a CSRF token). It needs
no log in: circ/checkin.pl asks for it.

To test:
1. Go to /cgi-bin/koha/circ/returns.pl
2. You are on Circulation > Check in (/cgi-bin/koha/circ/checkin.pl)
3. Go to /cgi-bin/koha/circ/returns.pl?barcode=3999900000001
4. You are on the check-in page, with the barcode in the box and the
   item not checked in
5. Log out and go to /cgi-bin/koha/circ/returns.pl: you are asked to
   log in, then land on the check-in page
6. Run the Cypress spec:
   t/cypress/integration/Circulation/Checkin_spec.ts

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to