Bug 35752 - Can't delete additional contents with 'Delete selected' button
Summary: Can't delete additional contents with 'Delete selected' button
Status: Pushed to stable
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Lucas Gass (lukeg)
QA Contact: Victor Grousset/tuxayo
URL:
Keywords:
Depends on: 34368
Blocks: 35753
  Show dependency treegraph
 
Reported: 2024-01-09 21:46 UTC by Lucas Gass (lukeg)
Modified: 2024-01-31 13:30 UTC (History)
5 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
24.05.00,23.11.03
Circulation function:


Attachments
Bug 35752: Pass CSRF token to del_form (1.36 KB, patch)
2024-01-09 21:50 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 35752: Pass CSRF token to del_form (1.44 KB, patch)
2024-01-11 07:58 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 35752: Pass CSRF token to del_form (1.49 KB, patch)
2024-01-18 23:18 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Gass (lukeg) 2024-01-09 21:46:06 UTC

    
Comment 1 Lucas Gass (lukeg) 2024-01-09 21:48:30 UTC
To recreate:

1. Have multiple additional content items ( news/HTML customization/Pages )
2. On one of the pages ( news/HTML customization/Pages ) select more than one item and try to delete using the 'Delete selected' button 
3. You are redirected but nothing happens.
Comment 2 Lucas Gass (lukeg) 2024-01-09 21:50:48 UTC
Created attachment 160726 [details] [review]
Bug 35752: Pass CSRF token to del_form

To test:

1. Have multiple additional content items ( news/HTML customization/Pages )
2. On one of the pages ( news/HTML customization/Pages ) select more than one item and try to delete using the 'Delete selected' button
3. You are redirected but nothing happens.
4. APPLY PATCH
5. Try again, this time you should be able to successfully delete additional-contents.
Comment 3 Jonathan Druart 2024-01-11 07:57:44 UTC
Note: With bug 34862 we get the CSRF error message.
Comment 4 Jonathan Druart 2024-01-11 07:58:54 UTC
Created attachment 160799 [details] [review]
Bug 35752: Pass CSRF token to del_form

To test:

1. Have multiple additional content items ( news/HTML customization/Pages )
2. On one of the pages ( news/HTML customization/Pages ) select more than one item and try to delete using the 'Delete selected' button
3. You are redirected but nothing happens.
4. APPLY PATCH
5. Try again, this time you should be able to successfully delete additional-contents.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 5 Victor Grousset/tuxayo 2024-01-18 23:18:06 UTC
Created attachment 161163 [details] [review]
Bug 35752: Pass CSRF token to del_form

To test:

1. Have multiple additional content items ( news/HTML customization/Pages )
2. On one of the pages ( news/HTML customization/Pages ) select more than one item and try to delete using the 'Delete selected' button
3. You are redirected but nothing happens.
4. APPLY PATCH
5. Try again, this time you should be able to successfully delete additional-contents.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 6 Victor Grousset/tuxayo 2024-01-18 23:18:29 UTC
Works, makes sense, QA script happy, code looks good, passing QA :)
Comment 7 Katrin Fischer 2024-01-26 14:18:06 UTC
Pushed for 24.05!

Well done everyone, thank you!
Comment 8 Fridolin Somers 2024-01-31 13:30:14 UTC
Pushed to 23.11.x for 23.11.03