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
[50959] Do not display derived value if identical to the value
Christophe Bliard1cbc79914aed
diff --git a/frontend/src/app/shared/components/fields/display/field-types/estimated-time-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/estimated-time-display-field.module.tsindex 8890c39a8cf..8925083f494 100644--- a/frontend/src/app/shared/components/fields/display/field-types/estimated-time-display-field.module.ts+++ b/frontend/src/app/shared/components/fields/display/field-types/estimated-time-display-field.module.ts@@ -70,7 +70,7 @@ export class EstimatedTimeDisplayField extends DisplayField {this.renderActual(element, displayText);const derived = this.derivedValue;- if (derived && this.timezoneService.toHours(derived) !== 0) {+ if (derived && derived !== this.value && this.timezoneService.toHours(derived) !== 0) {this.renderSeparator(element);this.renderDerived(element, this.derivedValueString);}diff --git a/spec/features/work_packages/display_fields/estimated_hours_display_spec.rb b/spec/features/work_packages/display_fields/estimated_hours_display_spec.rbindex 9e52145ee4d..c5faf425039 100644--- a/spec/features/work_packages/display_fields/estimated_hours_display_spec.rb+++ b/spec/features/work_packages/display_fields/estimated_hours_display_spec.rb@@ -82,14 +82,14 @@ RSpec.describe 'Estimated hours display' dowp_table.expect_work_package_listed childwp_table.expect_work_package_with_attributes(- parent, estimatedTime: "1 hΣ 3 h"+ parent, estimatedTime: "1 hΣ 4 h")endit 'work package details', :js dovisit work_package_path(parent.id)- expect(page).to have_content("Work\n1 hΣ 3 h")+ expect(page).to have_content("Work\n1 hΣ 4 h")endend