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
[#58337] fixed upload target for new resources
Eric Schubert25f43d255d2b
diff --git a/frontend/src/app/core/state/attachments/attachments.service.ts b/frontend/src/app/core/state/attachments/attachments.service.tsindex abe51737b88..652dcb334e8 100644--- a/frontend/src/app/core/state/attachments/attachments.service.ts+++ b/frontend/src/app/core/state/attachments/attachments.service.ts@@ -194,11 +194,19 @@ export class AttachmentsResourceService extends ResourceStoreService<IAttachment}private static getAttachmentsSelfLink(resource:HalResource):string|null {+ if (isNewResource(resource)) {+ return null;+ }+const attachments = resource.attachments as { href?:string };return attachments?.href || null;}private static getAddAttachmentsLink(resource:HalResource):string|null {+ if (isNewResource(resource)) {+ return null;+ }+const link = resource.addAttachment as { href?:string };return link?.href || null;}