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

--- Comment #1 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 203756
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203756&action=edit
Bug 43309: Migrate circ/returns.tt to use api-client.js

This patch replaces raw jQuery.ajax() calls in circ/returns.tt
with api-client.js for proper CSRF token handling.

Changes:
- Replace bundled items DELETE with APIClient.item.bundled_items.remove
- Replace hold group cancel POST with APIClient.default.koha.post

Test plan:
1. Apply patch
2. Check in a bundled item with a missing component
   => Click "Remove from bundle" on the alert
=> SUCCESS: Alert removed, item unlinked
3. Check in an item with a hold group
   => Click "Cancel hold group"
=> SUCCESS: Page reloads, hold group cancelled
4. Sign off :-D

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
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