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:
parent
8901997254
commit
e9a10a446b
1 changed files with 9 additions and 2 deletions
|
@ -390,8 +390,15 @@ class View_TaskDependencies
|
||||||
}
|
}
|
||||||
|
|
||||||
$list = HTML::make( 'ul' )->setAttribute( 'class' , 'dep-list' );
|
$list = HTML::make( 'ul' )->setAttribute( 'class' , 'dep-list' );
|
||||||
$prevItem = null;
|
$showItem = ( $this->task->parent_task === null );
|
||||||
$itemList = null;
|
if ( $showItem ) {
|
||||||
|
$prevItem = null;
|
||||||
|
$itemList = null;
|
||||||
|
} else {
|
||||||
|
$prevItem = (string) $this->task->item->id;
|
||||||
|
$itemList = $list;
|
||||||
|
}
|
||||||
|
|
||||||
foreach ( $this->task->$source as $dependency ) {
|
foreach ( $this->task->$source as $dependency ) {
|
||||||
if ( $prevItem !== $dependency->item ) {
|
if ( $prevItem !== $dependency->item ) {
|
||||||
$itemList = HTML::make( 'ul' );
|
$itemList = HTML::make( 'ul' );
|
||||||
|
|
Loading…
Reference in a new issue