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

handle time entries without work packages

ulferts4c8067d2087c
diff --git a/frontend/src/app/modules/grids/widgets/time-entries-current-user/list/time-entries-list.component.html b/frontend/src/app/modules/grids/widgets/time-entries-current-user/list/time-entries-list.component.html
index e7275983b81..9f4d3b2fc93 100644
--- a/frontend/src/app/modules/grids/widgets/time-entries-current-user/list/time-entries-list.component.html
+++ b/frontend/src/app/modules/grids/widgets/time-entries-current-user/list/time-entries-list.component.html
@@ -69,9 +69,13 @@
<strong [textContent]="item.date"></strong>
</td>
<td class="subject"
- *ngIf="item.entry">
+ *ngIf="item.entry && item.entry.workPackage">
{{projectName(item.entry)}} - <a [href]="workPackagePath(item.entry)" [textContent]="workPackageName(item.entry)"></a>
</td>
+ <td class="subject"
+ *ngIf="item.entry && !item.entry.workPackage"
+ [textContent]="projectName(item.entry)">
+ </td>
<td class="comments"
*ngIf="item.entry"
[textContent]="comment(item.entry)">