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

fix recent wp autocompleter broken in 4c575217bb

ulfertsf888ec1a0252
diff --git a/frontend/src/app/modules/fields/edit/field-types/te-work-package-edit-field.component.ts b/frontend/src/app/modules/fields/edit/field-types/te-work-package-edit-field.component.ts
index 7e26095004a..9772c8cac37 100644
--- a/frontend/src/app/modules/fields/edit/field-types/te-work-package-edit-field.component.ts
+++ b/frontend/src/app/modules/fields/edit/field-types/te-work-package-edit-field.component.ts
@@ -82,7 +82,7 @@ export class TimeEntryWorkPackageEditFieldComponent extends WorkPackageEditField
// associated with the time entries so that we have the most recent work packages the user logged time on.
// As a worst case, the user logged RECENT_TIME_ENTRIES_MAGIC_NUMBER times on one work package so we can not guarantee to actually have
// a fixed number returned.
- protected allowedValuesFetch(query?:string) {
+ protected loadAllowedValues(query?:string) {
if (!this.recentWorkPackageIds) {
return this
.timeEntryDm
@@ -93,10 +93,10 @@ export class TimeEntryWorkPackageEditFieldComponent extends WorkPackageEditField
.map((timeEntry) => timeEntry.workPackage.idFromLink)
.filter((v, i, a) => a.indexOf(v) === i);
- return super.loadAllowedValues(query);
+ return this.fetchAllowedValueQuery(query);
});
} else {
- return super.loadAllowedValues(query);
+ return this.fetchAllowedValueQuery(query);
}
}