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 camelcase for dateAlert filter value
ulfertsfce778049052
diff --git a/app/models/queries/notifications/filters/reason_filter.rb b/app/models/queries/notifications/filters/reason_filter.rbindex e6c4f0d4d3c..1b2bade31bd 100644--- a/app/models/queries/notifications/filters/reason_filter.rb+++ b/app/models/queries/notifications/filters/reason_filter.rb@@ -27,7 +27,11 @@#++class Queries::Notifications::Filters::ReasonFilter < Queries::Notifications::Filters::NotificationFilter- REASONS = Notification.reasons.except(:date_alert_start_date, :date_alert_due_date).merge(date_alert: [10, 11])+ REASONS = Notification+ .reasons+ .except(:date_alert_start_date, :date_alert_due_date)+ .merge(dateAlert: [Notification::REASONS[:date_alert_start_date],+ Notification::REASONS[:date_alert_due_date]])def allowed_valuesREASONS.keys.map { |reason| [reason, reason] }diff --git a/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts b/frontend/src/app/features/in-app-notifications/center/menu/menu.component.tsindex fb980cca1ef..59760e43700 100644--- a/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts+++ b/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts@@ -96,7 +96,7 @@ export class IanMenuComponent implements OnInit {key: 'dateAlert',title: this.I18n.t('js.notifications.menu.date_alert'),icon: 'date-alert',- ...getUiLinkForFilters({ filter: 'reason', name: 'date_alert' }),+ ...getUiLinkForFilters({ filter: 'reason', name: 'dateAlert' }),},];