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

--- Comment #4 from Emmi Takkinen <[email protected]> ---
Created attachment 183856
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=183856&action=edit
Bug 39625: Set interface correctly in check_cookie_auth

When one renews or returns an item from patrons "Checkouts"
table, this actions interface is recorded to statistics table
as opac. We use method check_cookie_auth in scv endpoints
and this method doesn't set interface value correctly. This
patch fixes this by fetching interface value from session
params.

To test:
1. Search for a patron with renewable checkouts.
2. Renew one of patron's items by checkin it in
Renew column and selecting then Renew selected items.
3. Check the statistics table which interface is
recorded with following query:
SELECT * FROM statistics WHERE borrowernumber=xxx AND
type='renew' ORDER BY 1 DESC;
=> Notice that interface has value "opac" not "intranet".
4. Apply this patch.
5. Repeat steps 2. and 3.
=> Confirm that intreface value is now "intranet".

Test returning an item the same way.

Sponsored-by: Koha-Suomi Oy

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to