Skip to content

Commit 16a1731

Browse files
committed
missing timetracks : display email
1 parent dad4ed2 commit 16a1731

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

timetracking/missing_timetracks.php

+2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ private function getConsistencyErrors(TimeTracking $timeTracking) {
9898
'date' => date("Y-m-d", $cerr->timestamp),
9999
'userId' => $cerr->userId,
100100
'userName' => $user->getRealname(),
101+
'userEmail' => $user->getEmail(),
101102
'severity' => $cerr->getLiteralSeverity(),
102103
'severityColor' => $cerr->getSeverityColor(),
103104
'desc' => $cerr->desc);
@@ -106,6 +107,7 @@ private function getConsistencyErrors(TimeTracking $timeTracking) {
106107
$missingPerUser[$cerr->userId] = array(
107108
'userId' => $cerr->userId,
108109
'userName' => $user->getRealname(),
110+
'userEmail' => $user->getEmail(),
109111
'missingDays' => (float)$cerr->rawValue,
110112
'missingTT' => (int)1,
111113
);

tpl/missing_timetracks.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ <h2>{t}Missing Timetracks{/t}</h2>
2020

2121
<div id="tab_perUser">
2222
<span style="font-weight: normal; font-size: 12px; align: left;">{$workdays} {t}workdays{/t}</span>
23-
<div style="width: 50%;">
23+
<div style="width: 70%;">
2424
<table class='datatable_csv' >
2525
<thead>
2626
<tr>
2727
<th>{t}User{/t}</th>
2828
<th>{t}Missing timetracks{/t}</th>
2929
<th>{t}Missing days{/t}</th>
30+
<th>{t}Email{/t}</th>
3031
</tr>
3132
</thead>
3233
<tbody>
@@ -35,6 +36,7 @@ <h2>{t}Missing Timetracks{/t}</h2>
3536
<td title="{$i.userId}">{$i.userName}</td>
3637
<td>{$i.missingTT}</td>
3738
<td>{$i.missingDays}</td>
39+
<td>{$i.userEmail}</td>
3840
</tr>
3941
{/foreach}
4042
</tbody>
@@ -43,6 +45,7 @@ <h2>{t}Missing Timetracks{/t}</h2>
4345
<th></th>
4446
<th>{$totalErrors}</th>
4547
<th>{$totalMissingDays}</th>
48+
<th></th>
4649
</tr>
4750
</tfoot>
4851
</table>

0 commit comments

Comments
 (0)