Fix models integrity by using the "id" instead of "name" when dealing with models #916
Labels
component: labels
Changes related to labeling or categorization of issues or pull requests.
component: presets
Changes related to predefined settings or configurations.
component: roles
Changes related to user roles and permissions.
component: rooms
Changes related to virtual meeting rooms or spaces.
priority: blocker
Indicates that the issue or pull request is blocking progress and requires immediate attention.
scope: quality
Changes aimed at improving code or product quality.
scope: robustness
Changes aimed at enhancing the robustness of the application.
scope: security
Changes related to security measures and enhancements.
type: bug
Indicates that the issue or pull request addresses a bug or error.
Milestone
Describe the bug
Labels, rooms and presets are bing loaded by their names instead of their id. The should be the only and unique identifier when loading and saving those three models.
To Reproduce
Steps to reproduce the behavior: search PHP function with "byName".
Expected behavior
When dealing with records we should use the "id" column as identifier.
Possible solution
Refactor the code to use "id" and not any other column.
Additional context
It creates additional bugs related to the session.
#915 (comment)
#915 (comment)
The text was updated successfully, but these errors were encountered: