Koha/labels
Owen Leonard a964d98dc8
Bug 37206: Removing an item from a label batch should be a CSRF-protected POST operation
This patch updates the label batch edit template so that removing a
single or multiple items from a batch is a CSRF-protected POST
operation.

The patch also removes the existing "if ($op eq 'cud-delete') {" section
of label-edit-batch.pl because it was unused.

To test, apply the patch and go to Cataloging -> Labels.

- Create a label batch and add multiple items to it.
- From the list of label batches, click "Edit" on the batch you created.
- Click the "Delete" button for one of the items in the batch.
  - If you confirm, the item should be deleted.
- In the "Select" column, check multiple checkboxes.
- Click the "Remove selected items" button in the toolbar.
  - Verify that confirming this operation results in the items being
    deleted from the batch.

Sponsored-by: Athens County Public Libraries
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-07-02 17:20:38 +02:00
..
barcode-print.pl
label-create-csv.pl Bug 36511: Some scripts missing a dependency following Bug 24879 2024-04-10 09:09:50 +02:00
label-create-pdf.pl Bug 10762: (QA follow-up) Perltidy 2023-10-25 10:35:31 -03:00
label-create-xml.pl Bug 36511: Some scripts missing a dependency following Bug 24879 2024-04-10 09:09:50 +02:00
label-edit-batch.pl Bug 37206: Removing an item from a label batch should be a CSRF-protected POST operation 2024-07-02 17:20:38 +02:00
label-edit-layout.pl Bug 34478: Update label ops 'edit' to 'edit_form' 2024-03-01 10:56:33 +01:00
label-edit-profile.pl Bug 34478: Update label ops 'edit' to 'edit_form' 2024-03-01 10:56:33 +01:00
label-edit-range.pl
label-edit-template.pl Bug 34478: Update label ops 'edit' to 'edit_form' 2024-03-01 10:56:33 +01:00
label-home.pl
label-item-search.pl Bug 36931: Fix label-item-search.pl by removing CSRF requirement 2024-05-24 15:36:46 +02:00
label-manage.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00
label-print.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00
spinelabel-home.pl
spinelabel-print.pl