"Add dependencies" implemented

A few bugs in the SQL scripts have been fixed. It is now possible to add
new dependencies to a task from the details page.
This commit is contained in:
Emmanuel BENOîT 2012-02-05 20:55:09 +01:00
parent 60d4fe1199
commit ba3fcc2470
8 changed files with 161 additions and 4 deletions
includes/t-data

View file

@ -57,7 +57,7 @@ class DAO_Items
public function getLineage( Data_Item $item )
{
if ( is_array( $item->lineage ) ) {
return;
return $item->lineage;
}
$query = $this->query(
@ -80,6 +80,7 @@ class DAO_Items
array_push( $stack , $entry->item_id );
}
$item->lineage = $stack;
return $item->lineage;
}