I've had the same problem, but after looking at the code I
found this works different than the manual describes; I
assume this is new in the current release but not yet
documented.
There's no way to set the status manually; it's done
automatic by calculating the estimated work hours and the
completed work hours; it that's more than 0%, the project
started.
There's a bug however, due to which hours are only
calculated when a task is finished.
You can fix this easily:
Open modules/projects/inc/projects_func.inc.php
Go to line 376; there you'll find the line:
$Qdone = "SELECT SUM(hours) as done FROM mgw_projects_tasks
WHERE project_id=".(int)$id." AND status=0";
Change that to:
$Qdone = "SELECT SUM(usedhours) as done FROM
mgw_projects_tasks WHERE project_id=".(int)$id;
Note: This doesn't give a proper calculation of
%-to-complete when the number of used hours is not equal to
the estimated hours; it's just a quick workaround.
I'm working on a patch for own use, and submit it in Patches
when done.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1309205
I've had the same problem, but after looking at the code I
found this works different than the manual describes; I
assume this is new in the current release but not yet
documented.
There's no way to set the status manually; it's done
automatic by calculating the estimated work hours and the
completed work hours; it that's more than 0%, the project
started.
There's a bug however, due to which hours are only
calculated when a task is finished.
You can fix this easily:
Open modules/projects/inc/projects_func.inc.php
Go to line 376; there you'll find the line:
$Qdone = "SELECT SUM(hours) as done FROM mgw_projects_tasks
WHERE project_id=".(int)$id." AND status=0";
Change that to:
$Qdone = "SELECT SUM(usedhours) as done FROM
mgw_projects_tasks WHERE project_id=".(int)$id;
Note: This doesn't give a proper calculation of
%-to-complete when the number of used hours is not equal to
the estimated hours; it's just a quick workaround.
I'm working on a patch for own use, and submit it in Patches
when done.
Logged In: YES
user_id=1309205
I've created a path for this; see patch# 1255159 in "Patches".
Hope this helps