OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Reduce conflicts
Mir Bhatia8003dd118905
diff --git a/app/controllers/admin/settings/date_format_settings_controller.rb b/app/controllers/admin/settings/date_format_settings_controller.rbindex 418548434ae..f0ce87853d2 100644--- a/app/controllers/admin/settings/date_format_settings_controller.rb+++ b/app/controllers/admin/settings/date_format_settings_controller.rb@@ -30,7 +30,7 @@ module Admin::Settingsclass DateFormatSettingsController < ::Admin::SettingsControllermenu_item :date_format- before_action :validate_start_of_week_year, only: :update+ before_action :validate_start_of_week_and_first_week_of_year_combination, only: :updatedef update # rubocop:disable Lint/UselessMethodDefinitionsuper@@ -46,9 +46,9 @@ module Admin::Settingsprivate- def validate_start_of_week_year- start_of_week = params[:settings][:start_of_week]- start_of_year = params[:settings][:first_week_of_year]+ def validate_start_of_week_and_first_week_of_year_combination+ start_of_week = settings_params[:start_of_week]+ start_of_year = settings_params[:first_week_of_year]if start_of_week.present? ^ start_of_year.present?flash[:error] = I18n.t(