Skip to content

fix(dashboard): fix ProjectSystemDefaultChangeException #183

Open
mingming-cn wants to merge 2 commits intoalphanodes:mainfrom
mingming-cn:main
Open

fix(dashboard): fix ProjectSystemDefaultChangeException #183
mingming-cn wants to merge 2 commits intoalphanodes:mainfrom
mingming-cn:main

Conversation

@mingming-cn
Copy link

@mingming-cn mingming-cn commented May 18, 2024

This PR is to fix a ProjectSystemDefaultChangeException that occurs when allowed_projects.count equals 1.

If you update the default project dashboard, the following exception will occur:

Dashboard::ProjectSystemDefaultChangeException (Dashboard::ProjectSystemDefaultChangeException):

plugins/additionals/app/models/dashboard.rb:389:in 'validate_project_system_default'
plugins/additionals/app/controllers/dashboards_controller.rb:113:in 'update'
lib/redmine/sudo_mode.rb:61:in 'sudo_mode'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant