Assigned tasks on user pages

The list of tasks assigned to an user will now appear on the page of the
assignee, minus the 'Assigned to' part because that'd be redundant.
This commit is contained in:
Emmanuel BENOîT 2012-02-06 18:12:07 +01:00
parent 634ed8f5ee
commit f7bf8c469a
4 changed files with 21 additions and 6 deletions
includes/t-tasks

View file

@ -95,8 +95,9 @@ class View_TasksList
return;
}
$item = Loader::DAO( 'items' )->get( $task->item );
$lineage = $item->lineage;
$itemsDao = Loader::DAO( 'items' );
$item = $itemsDao->get( $task->item );
$lineage = $itemsDao->getLineage( $item );
array_push( $lineage , $item->id );
$contents = array( );