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

after removing value of a duration field, its value should be zero

bsatarnejadf658738f8060
diff --git a/frontend/src/app/modules/fields/edit/field-types/duration-edit-field.component.ts b/frontend/src/app/modules/fields/edit/field-types/duration-edit-field.component.ts
index 5cbf7332cc0..31efe56f9e9 100644
--- a/frontend/src/app/modules/fields/edit/field-types/duration-edit-field.component.ts
+++ b/frontend/src/app/modules/fields/edit/field-types/duration-edit-field.component.ts
@@ -71,7 +71,7 @@ export class DurationEditFieldComponent extends EditFieldComponent {
if (val.isValid()) {
parsedValue = val.toISOString();
} else {
- parsedValue = this.resource[this.name];
+ parsedValue = null;
}
return parsedValue;