Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure default_project pref is a valid project
It was possible for a user's default project setting to contain an invalid project id (user_pref_table.default_project). This can happen when the user is removed from the list of allowed users on a private project, or when a project becomes private or is deleted. While this does not impact the MantisBT UI which transparently copes with it, in terms of data integrity this should not happen. We now set default_project to ALL_PROJECTS (0) when users no longer have access to their default project. Fixes #27144
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters