Skip to content

Commit 48fefe6

Browse files
committed
fixes dashboard clients
1 parent b6377b9 commit 48fefe6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<name>Time Tracker</name>
66
<summary>Time Tracker App</summary>
77
<description><![CDATA[Time Tracker App]]></description>
8-
<version>0.0.34</version>
8+
<version>0.0.35</version>
99
<licence>agpl</licence>
1010
<author mail="[email protected]" >MTier Ltd.</author>
1111
<namespace>TimeTracker</namespace>

js/dashboard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
// extract clients in clientMap
3232
var totalMinutes = 0;
3333
for (var x = 0; x < d.items.length; x++){
34-
cid = d.items[x].clientId;
34+
cid = d.items[x].client;
3535
if (cid == null){
3636
cid = -1;
3737
}
@@ -74,7 +74,7 @@
7474

7575
for (var x = 0; x < d.items.length; x++){
7676

77-
if (d.items[x].clientId === key || (d.items[x].clientId == null && key == -1)){
77+
if (d.items[x].client === key || (d.items[x].client == null && key == -1)){
7878
chartData.datasets[0].data[nindex] = 0;
7979
chartData.datasets[1].data[nindex] = d.items[x].totalDuration/60.0;
8080

0 commit comments

Comments
 (0)