Skip to content

User Roles are not removed upon uninstall #2353

@jll-02

Description

@jll-02

Describe the bug
After uninstalling the app, the deleted roles will still be in the "Has Role" table.
This will cause an update of a user with one of these roles to be impossible.

To Reproduce
Steps to reproduce the behavior:

  1. Have a system with at least one user with lms roles
  2. uninstall the lms app
  3. try to edit the user that had a role
  4. See error when saving the user

Expected behavior
The uninstall script should also remove the roles that were given, not only the roles themself.

Desktop (please complete the following information):

  • erpnext v15.106.0
  • frappe v15.107.1
  • lms v2.53.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions