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 broken specs
Henriette Darge6945c898cc2d
diff --git a/frontend/src/app/shared/components/fields/edit/field-types/days-duration-edit-field.component.html b/frontend/src/app/shared/components/fields/edit/field-types/days-duration-edit-field.component.htmlindex 056ad3eb64b..5636743b389 100644--- a/frontend/src/app/shared/components/fields/edit/field-types/days-duration-edit-field.component.html+++ b/frontend/src/app/shared/components/fields/edit/field-types/days-duration-edit-field.component.html@@ -10,7 +10,6 @@[ngModel]="formattedValue"(click)="onInputClick($event)"(focus)="showDatePickerModal()"- disabled="disabled"[id]="handler.htmlId"/><ng-container slot="body">diff --git a/frontend/src/stimulus/controllers/dynamic/work-packages/date-picker/preview.controller.ts b/frontend/src/stimulus/controllers/dynamic/work-packages/date-picker/preview.controller.tsindex 941769ff029..069b8108649 100644--- a/frontend/src/stimulus/controllers/dynamic/work-packages/date-picker/preview.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/work-packages/date-picker/preview.controller.ts@@ -502,14 +502,14 @@ export default class PreviewController extends DialogPreviewController {if (this.isTouched('start_date')) {if (this.isValueSet('start_date')) {this.markUntouched('due_date');- } else {+ } else if (this.isValueSet('due_date')) {this.markUntouched('start_date');this.markTouched('due_date');}} else if (this.isTouched('due_date')) {if (this.isValueSet('due_date')) {this.markUntouched('start_date');- } else {+ } else if (this.isValueSet('start_date')) {this.markUntouched('due_date');this.markTouched('start_date');}diff --git a/spec/features/work_packages/details/date_editor_spec.rb b/spec/features/work_packages/details/date_editor_spec.rbindex 6c5a8a42f3b..0324112a06e 100644--- a/spec/features/work_packages/details/date_editor_spec.rb+++ b/spec/features/work_packages/details/date_editor_spec.rb@@ -250,7 +250,7 @@ RSpec.describe "date inplace editor", :js, :selenium, with_settings: { date_formstart_date.datepicker.expect_start_date_error nilstart_date.datepicker.expect_due_date_error nil- start_date.datepicker.set_duration "invalid"+ start_date.datepicker.set_duration "1,4"start_date.datepicker.expect_duration_error "Is not a valid duration."start_date.datepicker.expect_start_date_error nilstart_date.datepicker.expect_due_date_error nil