-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Restrict user deletion of categories associated with other resources #14567
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
Restrict user deletion of categories associated with other resources #14567
Conversation
This reverts commit 61bd54ae07868713b0edcab02ec9db1441f5f9da.
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
app/bundles/CategoryBundle/EventListener/CategorySubscriber.php
Outdated
Show resolved
Hide resolved
app/bundles/CoreBundle/Exception/RecordCanNotBeDeletedException.php
Outdated
Show resolved
Hide resolved
Please request the review again once the CI is green |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @avikarshasaha
It is working as expected.
There is another issue with Category list page it is not related to this PR.
If you delete a category you will see the category list page UI is broken.
That issue is recorded at #14401 |
This pull request has been mentioned on Mautic Forums. There might be relevant details there: https://forum.mautic.org/t/announcing-mautic-6-beta-now-available-for-testing/35196/1 |
Description
In this PR, we restrict user deletion of categories if they are associated to other resources.
📋 Steps to test this PR: