From 16ad7129af10cdb9c9125dcd95f03f58ccabac66 Mon Sep 17 00:00:00 2001 From: Marcel Folaron Date: Sat, 24 Aug 2024 02:35:20 -0400 Subject: [PATCH] Timesheet fixes --- app/Domain/Timesheets/Templates/showAll.tpl.php | 2 +- app/Domain/Timesheets/Templates/showMy.tpl.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Domain/Timesheets/Templates/showAll.tpl.php b/app/Domain/Timesheets/Templates/showAll.tpl.php index 2931f8e2b..0df280dab 100644 --- a/app/Domain/Timesheets/Templates/showAll.tpl.php +++ b/app/Domain/Timesheets/Templates/showAll.tpl.php @@ -243,7 +243,7 @@ e($row['clientName']); ?> __("text.full_name"), $tpl->escape($row["firstname"]), $tpl->escape($row['lastname'])); ?> - __($tpl->get('kind')[$row['kind']]); ?> + __($tpl->get('kind')[$row['kind'] ?? 'GENERAL_BILLABLE'] ?? $tpl->get('kind')['GENERAL_BILLABLE']); ?> escape($row["milestone"]); ?> escape($row["tags"]); ?> diff --git a/app/Domain/Timesheets/Templates/showMy.tpl.php b/app/Domain/Timesheets/Templates/showMy.tpl.php index d6c6e14f0..c9cd52876 100644 --- a/app/Domain/Timesheets/Templates/showMy.tpl.php +++ b/app/Domain/Timesheets/Templates/showMy.tpl.php @@ -293,7 +293,7 @@ e($timeRow['headline']); ?> - __($tpl->get('kind')[$timeRow['kind']]); ?> + __($tpl->get('kind')[$row['kind'] ?? 'GENERAL_BILLABLE'] ?? $tpl->get('kind')['GENERAL_BILLABLE']); ?>