Summary: | Edit button for items in course reserves list doesn't work | ||
---|---|---|---|
Product: | Koha | Reporter: | Gretchen Maxeiner <maxeinergl> |
Component: | Course reserves | Assignee: | Sam Lau <samalau> |
Status: | Pushed to main --- | QA Contact: | Marcel de Rooy <m.de.rooy> |
Severity: | normal | ||
Priority: | P5 - low | CC: | david, m.de.rooy, samalau |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: |
This fixes editing existing reserves for a course (when using course reserves). Editing a reserve was opening the add reserve form, instead of letting you edit the existing reserve. (This is related to the CSRF changes added in Koha 24.05 to improve form security.)
|
Version(s) released in: |
24.11.00
|
Circulation function: | |||
Bug Depends on: | 36192 | ||
Bug Blocks: | |||
Attachments: |
Bug 37409: Fix 'Edit' button for items in course reserves list
Bug 37409: Fix 'Edit' button for items in course reserves list Bug 37409: Fix 'Edit' button for items in course reserves list Bug 37409: Fix 'Edit' button for items in course reserves list Bug 37409: Fix 'Edit' button for items in course reserves list Bug 37409: Fix 'Edit' button for items in course reserves list |
Description
Gretchen Maxeiner
2024-07-18 19:18:05 UTC
Created attachment 169791 [details] [review] Bug 37409: Fix 'Edit' button for items in course reserves list To test: 1) Set the 'UseCourseReserves' sys pref to 'Use' 2) Go to the Course reserves page 3) Create a new course, fill in the required info and make sure the 'Enabled?' is checked 4) Add a reserve to this course 5) From the course details page, select edit on the reserve you just made. 6) Note it brings you back to the add reserves page, and you are required to enter the barcode/biblionumber again to edit 7) Apply patch, restart_all 8) Press the edit button again 9) Now you are directed towards the correct page for editing 10) Make some changes and press save 11) You should be redirected back to the details page and your changes have been made Created attachment 169792 [details] [review] Bug 37409: Fix 'Edit' button for items in course reserves list To test: 1) Set the 'UseCourseReserves' sys pref to 'Use' 2) Go to the Course reserves page 3) Create a new course, fill in the required info and make sure the 'Enabled?' is checked 4) Add a reserve to this course 5) From the course details page, select edit on the reserve you just made. 6) Note it brings you back to the add reserves page, and you are required to enter the barcode/biblionumber again to edit 7) Apply patch, restart_all 8) Press the edit button again 9) Now you are directed towards the correct page for editing 10) Make some changes and press save 11) You should be redirected back to the details page and your changes have been made Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> Created attachment 169990 [details] [review] Bug 37409: Fix 'Edit' button for items in course reserves list To test: 1) Set the 'UseCourseReserves' sys pref to 'Use' 2) Go to the Course reserves page 3) Create a new course, fill in the required info and make sure the 'Enabled?' is checked 4) Add a reserve to this course 5) From the course details page, select edit on the reserve you just made. 6) Note it brings you back to the add reserves page, and you are required to enter the barcode/biblionumber again to edit 7) Apply patch, restart_all 8) Press the edit button again 9) Now you are directed towards the correct page for editing 10) Make some changes and press save 11) You should be redirected back to the details page and your changes have been made Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Seems that changing action to lookup should be enough? You also change itemnumber to barcode. But should work too (normally).. (In reply to Marcel de Rooy from comment #4) > Seems that changing action to lookup should be enough? You also change > itemnumber to barcode. But should work too (normally).. Sorry read op=lookup (In reply to Marcel de Rooy from comment #5) > (In reply to Marcel de Rooy from comment #4) > > Seems that changing action to lookup should be enough? You also change > > itemnumber to barcode. But should work too (normally).. > > Sorry read op=lookup Hm, this could cause a regression if a barcode was to be removed from an item in a course reserve. Any reason to not keep the itemnumber? Good point, my bad Created attachment 170007 [details] [review] Bug 37409: Fix 'Edit' button for items in course reserves list To test: 1) Set the 'UseCourseReserves' sys pref to 'Use' 2) Go to the Course reserves page 3) Create a new course, fill in the required info and make sure the 'Enabled?' is checked 4) Add a reserve to this course 5) From the course details page, select edit on the reserve you just made. 6) Note it brings you back to the add reserves page, and you are required to enter the barcode/biblionumber again to edit 7) Apply patch, restart_all 8) Press the edit button again 9) Now you are directed towards the correct page for editing 10) Make some changes and press save 11) You should be redirected back to the details page and your changes have been made Created attachment 170025 [details] [review] Bug 37409: Fix 'Edit' button for items in course reserves list To test: 1) Set the 'UseCourseReserves' sys pref to 'Use' 2) Go to the Course reserves page 3) Create a new course, fill in the required info and make sure the 'Enabled?' is checked 4) Add a reserve to this course 5) From the course details page, select edit on the reserve you just made. 6) Note it brings you back to the add reserves page, and you are required to enter the barcode/biblionumber again to edit 7) Apply patch, restart_all 8) Press the edit button again 9) Now you are directed towards the correct page for editing 10) Make some changes and press save 11) You should be redirected back to the details page and your changes have been made Signed-off-by: David Nind <david@davidnind.com> Created attachment 170435 [details] [review] Bug 37409: Fix 'Edit' button for items in course reserves list To test: 1) Set the 'UseCourseReserves' sys pref to 'Use' 2) Go to the Course reserves page 3) Create a new course, fill in the required info and make sure the 'Enabled?' is checked 4) Add a reserve to this course 5) From the course details page, select edit on the reserve you just made. 6) Note it brings you back to the add reserves page, and you are required to enter the barcode/biblionumber again to edit 7) Apply patch, restart_all 8) Press the edit button again 9) Now you are directed towards the correct page for editing 10) Make some changes and press save 11) You should be redirected back to the details page and your changes have been made Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Pushed for 24.11! Well done everyone, thank you! |