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

Sync initial hidden value

Oliver Güntherad6fd9992d07
diff --git a/frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component.ts b/frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component.ts
index 6dad618001c..631a10727f0 100644
--- a/frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component.ts
+++ b/frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component.ts
@@ -300,8 +300,8 @@ export class OpAutocompleterComponent<T extends IAutocompleteItem = IAutocomplet
}
ngAfterViewInit():void {
- if (!this.ngSelectInstance) {
- return;
+ if (this.inputName && this.model) {
+ this.syncHiddenField(this.mappedInputValue);
}
this.ngZone.runOutsideAngular(() => {