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
Fix setting end date without start date
Oliver Günthera92fa2fb979f
diff --git a/frontend/src/app/features/work-packages/components/filters/filter-date-times-value/filter-date-times-value.component.ts b/frontend/src/app/features/work-packages/components/filters/filter-date-times-value/filter-date-times-value.component.tsindex 0ffa49a97f3..b398f07df70 100644--- a/frontend/src/app/features/work-packages/components/filters/filter-date-times-value/filter-date-times-value.component.ts+++ b/frontend/src/app/features/work-packages/components/filters/filter-date-times-value/filter-date-times-value.component.ts@@ -71,21 +71,21 @@ export class FilterDateTimesValueComponent extends AbstractDateTimeValueControllsuper(I18n, timezoneService);}- public get begin():HalResource|string {- return this.filter.values[0];+ public get begin():string {+ return (this.filter.values[0] || '') as string;}- public set begin(val) {+ public set begin(val:string) {this.filter.values[0] = val || '';this.filterChanged.emit(this.filter);}- public get end() {- return this.filter.values[1];+ public get end():string {+ return (this.filter.values[1] || '') as string;}- public set end(val) {- this.filter.values[1] = val || '';+ public set end(val:string) {+ this.filter.values = [this.begin, val || ''] as string[];this.filterChanged.emit(this.filter);}diff --git a/spec/features/work_packages/table/queries/filter_spec.rb b/spec/features/work_packages/table/queries/filter_spec.rbindex 701c7e05678..e4909b8f97c 100644--- a/spec/features/work_packages/table/queries/filter_spec.rb+++ b/spec/features/work_packages/table/queries/filter_spec.rb@@ -674,13 +674,13 @@ describe 'filter work packages', js: true dolast_query = Query.lastdate_filter = last_query.filters.lastexpect(date_filter.values)- .to eq [nil, 1.day.ago.utc.beginning_of_day.iso8601]+ .to eq ['', 1.day.ago.utc.end_of_day.iso8601]wp_table.visit_query(last_query)loading_indicator_saveguard- wp_table.expect_work_package_listed wp_updated_today- wp_table.ensure_work_package_not_listed! wp_updated_5d_ago+ wp_table.expect_work_package_listed wp_updated_5d_ago+ wp_table.ensure_work_package_not_listed! wp_updated_todayfilters.open