[Bug 12941] batch enable/disable courses
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12941 --- Comment #7 from Adolfo Rodríguez Taboada <adolfo.rodriguez@xercode.es> --- Hi Zach, thanks for picking up this long-standing request! Your patch (attachment 209284) no longer applied on main, so I have rebased it, keeping you as the author: - the script is now in course_reserves/ (intranet/cgi-bin/ is not part of the repository layout) - the template context is adapted to bugs 41842 and 38185 - I added a description and a test plan to the commit message I have tested it locally and the batch enable/disable works well, including the change of item type of the course items. On top of it I have added a follow-up with some improvements we found useful while testing it: - the "Enabled" column is sortable by the current status of the checkboxes - "Enable all" / "Disable all" links, applying to all the courses matching the current search, on all pages (e.g. filter by term and disable the whole term at once) - a count of unsaved changes, and a warning when leaving the page with unsaved changes - a message after saving listing the enabled and disabled courses, and errors shown as messages on the course list instead of plain text pages - courses that already have the requested status are skipped, so their items are not modified again - the "Actions" column is only shown to users with manage_courses, is not sortable, and is added to columns_settings.yml - tidy and the exec flag for the new script (QA script failure) Feel free to comment or amend if you disagree with any of them. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org