additionals icon indicating copy to clipboard operation
additionals copied to clipboard

fix(dashboard): fix ProjectSystemDefaultChangeException

Open mingming-cn opened this issue 1 year ago • 0 comments

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'

mingming-cn avatar May 18 '24 15:05 mingming-cn