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 payload for form request

Oliver Günthera18ad75a1529
diff --git a/frontend/src/app/core/apiv3/endpoints/work_packages/apiv3-work-package-form.ts b/frontend/src/app/core/apiv3/endpoints/work_packages/apiv3-work-package-form.ts
index 4fafd46fdcf..51721913808 100644
--- a/frontend/src/app/core/apiv3/endpoints/work_packages/apiv3-work-package-form.ts
+++ b/frontend/src/app/core/apiv3/endpoints/work_packages/apiv3-work-package-form.ts
@@ -24,7 +24,7 @@ export class ApiV3WorkPackageForm extends ApiV3FormResource {
* @param payload: The payload to be sent to the backend
* @returns A work package form resource prefilled with the provided payload.
*/
- public forPayload(payload:HalSource):Observable<FormResource> {
+ public forPayload(payload:Partial<HalSource>):Observable<FormResource> {
return this.post(payload);
}
}
diff --git a/frontend/src/app/features/hal/resources/hal-resource.ts b/frontend/src/app/features/hal/resources/hal-resource.ts
index c3e56a35875..ab4b837d279 100644
--- a/frontend/src/app/features/hal/resources/hal-resource.ts
+++ b/frontend/src/app/features/hal/resources/hal-resource.ts
@@ -51,7 +51,7 @@ export type HalSourceLinks = {
};
export type HalSource = {
- [key:string]:string|number|null|HalSourceLinks,
+ [key:string]:string|number|boolean|null|HalSourceLinks,
_links:HalSourceLinks
};