jason
By: a guest | Feb 5th, 2010 | Syntax:
None | Size: 1.33 KB | Hits: 47 | Expires: Never
diff -ur /home/jfuchs/task/helper.php ./helper.php
--- /home/jfuchs/task/helper.php 2009-02-10 08:03:06.000000000 -0800
+++ ./helper.php 2010-02-05 11:51:48.544335118 -0800
-122,9 +122,9 @@
}
// skip other's tasks if filter is 'my'
- if ($user && !$responsible) continue;
-
- // skip assigned and not new tasks if filter is 'new'
+ if (($filter == 'my') && ($responsible == false)) continue;
+
+ // skip assigned and not new tasks if filter is 'new'
if (($filter == 'new') && ($task['user']['name'] || ($task['status'] != 0))) continue;
// skip not done and my tasks if filter is 'done'
Only in /home/jfuchs/task/: .helper.php.swp
diff -ur /home/jfuchs/task/syntax/tasks.php ./syntax/tasks.php
--- /home/jfuchs/task/syntax/tasks.php 2009-02-10 08:03:06.000000000 -0800
+++ ./syntax/tasks.php 2010-02-05 11:46:06.897704005 -0800
-206,7 +206,7 @@
*/
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';