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

sort reminder times upon save

ulferts0f5100e94826
diff --git a/frontend/src/app/features/user-preferences/reminder-settings/page/reminder-settings-page.component.ts b/frontend/src/app/features/user-preferences/reminder-settings/page/reminder-settings-page.component.ts
index d3a8c449f92..cef0665ac23 100644
--- a/frontend/src/app/features/user-preferences/reminder-settings/page/reminder-settings-page.component.ts
+++ b/frontend/src/app/features/user-preferences/reminder-settings/page/reminder-settings-page.component.ts
@@ -134,7 +134,7 @@ export class ReminderSettingsPageComponent extends UntilDestroyedMixin implement
const dailyReminderTimes = this.form.get('dailyReminders.times') as FormArray;
dailyReminderTimes.clear({ emitEvent: false });
- settings.dailyReminders.times.forEach((time) => {
+ [...settings.dailyReminders.times].sort().forEach((time) => {
dailyReminderTimes.push(this.fb.control(time), { emitEvent: false });
});