[Bug 12941] batch enable/disable courses
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12941 --- Comment #6 from Adolfo Rodríguez Taboada <adolfo.rodriguez@xercode.es> --- Created attachment 212604 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212604&action=edit Bug 12941: (follow-up) Improve sorting, add Enable/Disable all and feedback This follow-up: - makes the "Enabled" column sortable by the current status of the checkbox (disabled courses first in ascending order) - adds "Enable all" and "Disable all" links that apply to every course matching the current search, on all pages - shows the number of unsaved changes and warns before leaving the page with unsaved changes - displays a message after saving, listing the courses that have been enabled or disabled, and shows errors as messages on the course list instead of plain text pages - skips courses that already have the requested status, so their items are not modified again - shows the "Actions" column only to users with the manage_courses permission, makes it not sortable and adds it to the table settings - tidies the code Test plan: 1. Apply the patches. 2. Create 4 courses, 2 enabled and 2 disabled, and add an item to each of them with a different item type for the course reserve. 3. Go to Course reserves. 4. Sort by "Enabled": disabled courses go first, then enabled ones. 5. Change some checkboxes and sort again: the order follows the current status of the checkboxes. 6. Note that "N unsaved change(s)" is displayed and that "Save changes" is enabled. 7. Click "Edit" for a course: the browser warns about unsaved changes. Stay on the page. 8. Type a search matching only some of the courses, click "Disable all", clear the search: only the matching courses have been unchecked. 9. Click "Enable all" with no search: all the courses are checked. 10. Click "Save changes": a message lists the courses that have been enabled and disabled. 11. Check that the items of the enabled courses have the course reserve item type, and the items of the disabled courses their original one. 12. Log in as a user with the coursereserves permission but without manage_courses: "Enabled" shows Yes/No, and there are no "Actions" column, links or "Save changes" button. 13. Go to Administration > Table settings > Course reserves: the "actions" column is listed for course_reserves_table. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org