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
Use the meeting time_zone for formatting frequency
Oliver Günther5d854d833094
diff --git a/frontend/src/stimulus/controllers/dynamic/recurring-meetings/form.controller.ts b/frontend/src/stimulus/controllers/dynamic/recurring-meetings/form.controller.tsindex f58e2eb4e77..caa03c86d0c 100644--- a/frontend/src/stimulus/controllers/dynamic/recurring-meetings/form.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/recurring-meetings/form.controller.ts@@ -10,7 +10,13 @@ export default class OpRecurringMeetingsFormController extends OpMeetingsFormConupdateFrequencyText():void {const data = new FormData(this.element as HTMLFormElement);const urlSearchParams = new URLSearchParams();- ['start_date', 'start_time_hour', 'frequency', 'interval'].forEach((name) => {+ [+ 'start_date',+ 'start_time_hour',+ 'frequency',+ 'interval',+ 'time_zone',+ ].forEach((name) => {const key = `meeting[${name}]`;urlSearchParams.append(key, data.get(key) as string);});diff --git a/modules/meeting/app/controllers/recurring_meetings/schedule_controller.rb b/modules/meeting/app/controllers/recurring_meetings/schedule_controller.rbindex 0612ef28ce4..93321610283 100644--- a/modules/meeting/app/controllers/recurring_meetings/schedule_controller.rb+++ b/modules/meeting/app/controllers/recurring_meetings/schedule_controller.rb@@ -8,6 +8,7 @@ module RecurringMeetingsdef humanize_scheduletext = @recurring_meeting.human_frequency_schedule+respond_to do |format|format.html { render plain: text }format.turbo_stream do@@ -28,9 +29,7 @@ module RecurringMeetingsenddef schedule_params- params- .require(:meeting)- .permit(:start_date, :start_time_hour, :frequency, :interval)+ params.expect(meeting: %i[start_date start_time_hour frequency interval time_zone])endendenddiff --git a/modules/meeting/app/forms/meeting/time_group.rb b/modules/meeting/app/forms/meeting/time_group.rbindex 2d93802c4b6..d561e52a324 100644--- a/modules/meeting/app/forms/meeting/time_group.rb+++ b/modules/meeting/app/forms/meeting/time_group.rb@@ -42,6 +42,11 @@ class Meeting::TimeGroup < ApplicationForm)) { I18n.t("recurring_meeting.time_zone_difference_banner.title") }end++ meeting_form.hidden(+ name: :time_zone,+ value: @meeting.time_zone.name+ )endmeeting_form.group(layout: :horizontal) do |group|