philippK-de / Collabtive

Collabtive is web based project management software
https://collabtive.o-dyn.de
GNU General Public License v3.0
215 stars 131 forks source link

timetracker empty #115

Closed PowerChaos closed 8 years ago

PowerChaos commented 8 years ago

hi, when the timetracker is empty then it gives a white page as soon i add a new input from homepage the timetracker works

i also added following code in managetimetracker.php , but it shoulnd cause that problem (anyway code is for reference )

/*Custom Edit*/
if (!empty($cleanGet["start"]) and !empty($cleanGet["end"])) {
$track = $tracker->getProjectTrack($id, $cleanGet["usr"], $cleanGet["task"], $cleanGet["start"], $cleanGet["end"], false);
} else {
    $track = $tracker->getProjectTrack($id, $cleanGet["usr"], $cleanGet["task"], 0, 0, false);
}

$totaltime = $tracker->getTotalTrackTime($track);
$totaltime = str_replace(".", ",", $totaltime);
/* Custom Edit*/ 

can you check this please bug exist in commit https://github.com/philippK-de/Collabtive/commit/cba9668fc1c1a82bbdb347700fb874d99b84db5b

also mirror bug is the progress bar on project page still does not update manageproject.php?action=showproject&id=1 says 17% but shows empty bar (on project overvieuw it shows a red bar filled for 17% )

Greets From PowerChaos

PowerChaos commented 8 years ago

fixed progress bar problem template/standaard/project.tpl line 57 - 62 change `

{$done}%

` to `
{$done}%
`