Share Pastebin
Guest
Public paste!

jason

By: a guest | Feb 5th, 2010 | Syntax: None | Size: 1.33 KB | Hits: 47 | Expires: Never
Copy text to clipboard
  1. diff -ur /home/jfuchs/task/helper.php ./helper.php
  2. --- /home/jfuchs/task/helper.php        2009-02-10 08:03:06.000000000 -0800
  3. +++ ./helper.php        2010-02-05 11:51:48.544335118 -0800
  4.  -122,9 +122,9 @@
  5.              }
  6.  
  7.              // skip other's tasks if filter is 'my'
  8. -            if ($user && !$responsible) continue;
  9. -
  10. -            // skip assigned and not new tasks if filter is 'new'
  11. +           if (($filter == 'my') && ($responsible == false)) continue;
  12. +            
  13. +           // skip assigned and not new tasks if filter is 'new'
  14.              if (($filter == 'new') && ($task['user']['name'] || ($task['status'] != 0))) continue;
  15.  
  16.              // skip not done and my tasks if filter is 'done'
  17. Only in /home/jfuchs/task/: .helper.php.swp
  18. diff -ur /home/jfuchs/task/syntax/tasks.php ./syntax/tasks.php
  19. --- /home/jfuchs/task/syntax/tasks.php  2009-02-10 08:03:06.000000000 -0800
  20. +++ ./syntax/tasks.php  2010-02-05 11:46:06.897704005 -0800
  21.  -206,7 +206,7 @@
  22.      */
  23.      function _viewFilters() {
  24.          if (!$_SERVER['REMOTE_USER']) $filters = array('all', 'open', 'done');
  25. -        else $filters = array('all', 'open', 'new', 'done');
  26. +        else $filters = array('all', 'open', 'new', 'done', 'my');
  27.          if ($this->getConf('datefield')) {
  28.              $filters[] = 'due';
  29.              $filters[] = 'overdue';