Skip to content

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

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.rb
index 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::Settings
class DateFormatSettingsController < ::Admin::SettingsController
menu_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: :update
def update # rubocop:disable Lint/UselessMethodDefinition
super
@@ -46,9 +46,9 @@ module Admin::Settings
private
- 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(