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
Show attribute help text for date correctly
Oliver Güntherfafdc9c7ebb4
diff --git a/frontend/src/app/features/work-packages/components/wp-form-group/wp-attribute-group.component.ts b/frontend/src/app/features/work-packages/components/wp-form-group/wp-attribute-group.component.tsindex c2306c2ad8e..023efb60cb1 100644--- a/frontend/src/app/features/work-packages/components/wp-form-group/wp-attribute-group.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-form-group/wp-attribute-group.component.ts@@ -26,13 +26,7 @@// See COPYRIGHT and LICENSE files for more details.//++-import {- Component,- HostBinding,- Injector,- Input,- ViewEncapsulation,-} from '@angular/core';+import { Component, HostBinding, Injector, Input, ViewEncapsulation } from '@angular/core';import { I18nService } from 'core-app/core/i18n/i18n.service';import { WorkPackageResource } from 'core-app/features/hal/resources/work-package-resource';import { EditFormComponent } from 'core-app/shared/components/fields/edit/edit-form/edit-form.component';@@ -56,9 +50,11 @@ export class WorkPackageFormAttributeGroupComponent extends UntilDestroyedMixin@Input() public group:GroupDescriptor;- constructor(readonly I18n:I18nService,+ constructor(+ readonly I18n:I18nService,public wpEditForm:EditFormComponent,- protected injector:Injector) {+ protected injector:Injector,+ ) {super();}@@ -74,11 +70,4 @@ export class WorkPackageFormAttributeGroupComponent extends UntilDestroyedMixinconst field = descriptor.field || descriptor.fields![0];return this.wpEditForm.editMode && !field.writable;}-- public fieldName(name:string) {- if (name === 'startDate') {- return 'combinedDate';- }- return name;- }}diff --git a/frontend/src/app/features/work-packages/components/wp-form-group/wp-attribute-group.template.html b/frontend/src/app/features/work-packages/components/wp-form-group/wp-attribute-group.template.htmlindex 22dbea0e0d5..a1533d20c64 100644--- a/frontend/src/app/features/work-packages/components/wp-form-group/wp-attribute-group.template.html+++ b/frontend/src/app/features/work-packages/components/wp-form-group/wp-attribute-group.template.html@@ -25,7 +25,7 @@[ngClass]="{'wp-edit-formattable-field': descriptor.field!.isFormattable }"[resource]="workPackage"[isDropTarget]="descriptor.field!.isFormattable"- [fieldName]="fieldName(descriptor.name)"+ [fieldName]="descriptor.field!.name"></op-editable-attribute-field></div></ng-template>diff --git a/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.tsindex fc3b3820fc5..ec43bb98829 100644--- a/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts@@ -388,7 +388,7 @@ export class WorkPackageSingleViewComponent extends UntilDestroyedMixin implemen*/private getDateField(change:WorkPackageChangeset):FieldDescriptor {const object:FieldDescriptor = {- name: '',+ name: 'date',label: this.I18n.t('js.work_packages.properties.date'),spanAll: false,multiple: false,@@ -396,10 +396,8 @@ export class WorkPackageSingleViewComponent extends UntilDestroyedMixin implemenif (change.schema.ofProperty('date')) {object.field = this.displayField(change, 'date');- object.name = 'date';} else {object.field = this.displayField(change, 'combinedDate');- object.name = 'combinedDate';}return object;