|
|
@ -49,11 +49,12 @@ export class WorkPackageSpentTimeDisplayField extends DurationDisplayField { |
|
|
|
link.setAttribute('title', this.text.linkTitle); |
|
|
|
link.setAttribute('title', this.text.linkTitle); |
|
|
|
|
|
|
|
|
|
|
|
if (this.resource.project) { |
|
|
|
if (this.resource.project) { |
|
|
|
|
|
|
|
const wpID = this.resource.id.toString(); |
|
|
|
this.projectCacheService |
|
|
|
this.projectCacheService |
|
|
|
.require(this.resource.project.idFromLink) |
|
|
|
.require(this.resource.project.idFromLink) |
|
|
|
.then((project:ProjectResource) => { |
|
|
|
.then((project:ProjectResource) => { |
|
|
|
const href = URI(this.PathHelper.projectTimeEntriesPath(project.identifier)) |
|
|
|
const href = URI(this.PathHelper.projectTimeEntriesPath(project.identifier)) |
|
|
|
.search({work_package_id: this.resource.id}) |
|
|
|
.search({work_package_id: wpID}) |
|
|
|
.toString(); |
|
|
|
.toString(); |
|
|
|
|
|
|
|
|
|
|
|
link.href = href; |
|
|
|
link.href = href; |
|
|
|