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

Merge remote-tracking branch 'origin/release/10.6' into dev

Oliver Günther8618664bf74f
diff --cc frontend/src/app/modules/fields/changeset/resource-changeset.ts
index db0fb489c38,b61540314da..5a6f5061218
--- a/frontend/src/app/modules/fields/changeset/resource-changeset.ts
+++ b/frontend/src/app/modules/fields/changeset/resource-changeset.ts
@@@ -261,6 -284,18 +297,18 @@@ export class ResourceChangeset<T extend
public get schema():SchemaResource {
return this.form$.getValueOr(this.pristineResource).schema;
}
+
+ /**
+ * Access some promised value
+ * that should be cached for the lifetime duration of the form.
+ */
+ public cacheValue<T>(key:string, request:() => Promise<T>):Promise<T> {
+ if (this.cache[key]) {
+ return this.cache[key] as Promise<T>;
+ }
-
++
+ return this.cache[key] = request();
+ }
protected get minimalPayload() {
return { lockVersion: this.pristineResource.lockVersion, _links: {} };