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
Fix js error when time entry has no activity
Christophe Bliardb16e6c9bf0ef
diff --git a/frontend/src/app/features/calendar/te-calendar/te-calendar.component.ts b/frontend/src/app/features/calendar/te-calendar/te-calendar.component.tsindex f4f41e5ca33..4beb9c4922f 100644--- a/frontend/src/app/features/calendar/te-calendar/te-calendar.component.ts+++ b/frontend/src/app/features/calendar/te-calendar/te-calendar.component.ts@@ -632,7 +632,7 @@ export class TimeEntryCalendarComponent implements AfterViewInit, OnDestroy {</li><li class="tooltip--map--item"><span class="tooltip--map--key">${schema.activity.name}:</span>- <span class="tooltip--map--value">${this.sanitizedValue(entry.activity.name)}</span>+ <span class="tooltip--map--value">${this.sanitizedValue(entry.activity?.name || '')}</span></li><li class="tooltip--map--item"><span class="tooltip--map--key">${schema.hours.name}:</span>diff --git a/frontend/src/app/features/hal/resources/time-entry-resource.ts b/frontend/src/app/features/hal/resources/time-entry-resource.tsindex b554917315b..328811b9245 100644--- a/frontend/src/app/features/hal/resources/time-entry-resource.ts+++ b/frontend/src/app/features/hal/resources/time-entry-resource.ts@@ -35,7 +35,7 @@ import Formattable = api.v3.Formattable;export class TimeEntryResource extends HalResource {project:ProjectResource;- activity:HalResource;+ activity:HalResource|null;comment:Formattable;