Skip to content

Commit

Permalink
added "my" flag for viewing only own tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
lupo49 committed Dec 30, 2010
1 parent bf7ed9a commit b7d079c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helper.php
Expand Up @@ -122,7 +122,7 @@ function getTasks($ns, $num = NULL, $filter = '', $user = NULL) {
}

// skip other's tasks if filter is 'my'
if ($user && !$responsible) continue;
if (($filter == 'my') && (!$responsible)) continue;

// skip assigned and not new tasks if filter is 'new'
if (($filter == 'new') && ($task['user']['name'] || ($task['status'] != 0))) continue;
Expand Down
2 changes: 1 addition & 1 deletion syntax/tasks.php
Expand Up @@ -206,7 +206,7 @@ function _viewMenu($filter) {
*/
function _viewFilters() {
if (!$_SERVER['REMOTE_USER']) $filters = array('all', 'open', 'done');
else $filters = array('all', 'open', 'new', 'done');
else $filters = array('all', 'open', 'new', 'done', 'my');
if ($this->getConf('datefield')) {
$filters[] = 'due';
$filters[] = 'overdue';
Expand Down

0 comments on commit b7d079c

Please sign in to comment.