Sub-task dependency display fix

When displaying a sub-task's dependencies, don't display item names as
they are unnecessary (all dependencies being sub-tasks of the same
task anyway).
This commit is contained in:
Emmanuel BENOîT 2016-01-06 10:24:17 +01:00
parent 8901997254
commit e9a10a446b

View file

@ -390,8 +390,15 @@ class View_TaskDependencies
}
$list = HTML::make( 'ul' )->setAttribute( 'class' , 'dep-list' );
$prevItem = null;
$itemList = null;
$showItem = ( $this->task->parent_task === null );
if ( $showItem ) {
$prevItem = null;
$itemList = null;
} else {
$prevItem = (string) $this->task->item->id;
$itemList = $list;
}
foreach ( $this->task->$source as $dependency ) {
if ( $prevItem !== $dependency->item ) {
$itemList = HTML::make( 'ul' );