-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
observe event course_category_deleted #1
observe event course_category_deleted #1
Conversation
Remark: there should also be a test on deleting the category, I only tested manually yet |
Tests added 👍🏻 |
change minimum Moodle version und update usage
fix typo
bcedf1b
to
8235b7a
Compare
Found an issue within local_cohortrole_render_add_buttons() when adding the plugin to our local testing installation, will check on it later: Debug-Info:
Stack trace:
|
…contextes instead of tryint to use a course_category instance
…e Moodle installations)
So, I found a way around using the issue depending on a category with id "1" by using the default category's context to obtain the roles. I noted a glitch on the form as it lost the "$mode" after validation, this is also fixed and found a bug in the sort order of the table. Additionally, one was able to assign course-category level only roles to the system context by not choosing any role One might discuss if the UI changes I introduced are useful. In our case, we have some categories having the same name in different top-level categories and it would be quite useful to see the full path. Also, the direct links to the roles and categories are more or less useful from a (i.e. my ....) admin perspective handling many roles and categories. I did not squash the commits yet but could do so to keep the history a bit cleaner :) |
Thanks for implementing this missing part. For me we should not bump the version here yet. When the feature branch is done completely the Will review your stuff and push it to this merge request. Thanks for your hard work! So I'll clean up the history and remain you as the author. Greets |
Thanks for raising this new introduced issue. Can you please raise an own issue for that part? We'll only handle/merge the course category deletion handling in this PR. Greets |
Very helpful. Thanks to both of you. |
Monitor the course_category_deleted event and delete the instances, update required Moodle version