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

Prevent saving from wpList with no form loaded

Oliver Güntherf9471ab39564
diff --git a/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts b/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts
index 8afe70ce5ce..200d31e6c53 100644
--- a/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts
@@ -307,10 +307,10 @@ export class WorkPackagesListService {
return promise;
}
- public save(query?:QueryResource) {
- query = query || this.currentQuery;
+ public async save(givenQuery?:QueryResource):Promise<unknown> {
+ const query = givenQuery || this.currentQuery;
- const form = this.querySpace.queryForm.value!;
+ const form = await this.querySpace.queryForm.valuesPromise();
const promise = this
.apiV3Service