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:
parent
634ed8f5ee
commit
f7bf8c469a
4 changed files with 21 additions and 6 deletions
includes/t-data
|
@ -62,6 +62,16 @@ class DAO_Tasks
|
|||
}
|
||||
|
||||
|
||||
public function getUserTasks( $user )
|
||||
{
|
||||
return $this->query(
|
||||
'SELECT * FROM tasks_list '
|
||||
. 'WHERE assigned_to_id = $1 '
|
||||
. 'ORDER BY priority DESC , missing_dependencies ASC NULLS FIRST , added_at DESC'
|
||||
)->execute( $user->user_id );
|
||||
}
|
||||
|
||||
|
||||
public function addTask( $item , $title , $priority , $description )
|
||||
{
|
||||
$result = $this->query( 'SELECT add_task( $1 , $2 , $3 , $4 , $5 ) AS error' )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue