Skip to content
Snippets Groups Projects
Commit a02c539a authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

FIX #5521

parent 1e90d0a5
No related branches found
No related tags found
No related merge requests found
......@@ -163,8 +163,11 @@ function updateTotal(days,mode)
}
}
}
document.getElementById('totalDay['+days+']').innerHTML = pad(total.getHours())+':'+pad(total.getMinutes());
//addText(,total.getHours()+':'+total.getMinutes());
if (document.getElementById('totalDay['+days+']')) // May be null if no task records to output (nbline is also 0 in this case)
{
document.getElementById('totalDay['+days+']').innerHTML = pad(total.getHours())+':'+pad(total.getMinutes());
//addText(,total.getHours()+':'+total.getMinutes());
}
}
else
{
......@@ -204,7 +207,10 @@ function updateTotal(days,mode)
}
}
}
document.getElementById('totalDay['+days+']').innerHTML = total;
if (document.getElementById('totalDay['+days+']')) // May be null if no task records to output (nbline is also 0 in this case)
{
document.getElementById('totalDay['+days+']').innerHTML = total;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment