Fix unit test (PHP 5.4 regression)

This commit is contained in:
Frederic Guillot 2016-01-16 19:40:26 -05:00
parent 2e4c2b6e05
commit 81e4c3199e
1 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,9 @@ class AverageTimeSpentColumnAnalytic extends Base
*/
private function processTasks(array &$stats, $project_id)
{
foreach ($this->getTasks($project_id) as &$task) {
$tasks = $this->getTasks($project_id);
foreach ($tasks as &$task) {
foreach ($this->getTaskTimeByColumns($task) as $column_id => $time_spent) {
if (isset($stats[$column_id])) {
$stats[$column_id]['count']++;