Change key of no filter from 'none' to '' so No filters favorite works

This commit is contained in:
Nathan Gray 2013-05-06 22:08:08 +00:00
parent eaa100921c
commit 867873824e
2 changed files with 3 additions and 3 deletions

View File

@ -134,7 +134,7 @@ class infolog_bo
* @var array filter => label pairs * @var array filter => label pairs
*/ */
var $filters = array( var $filters = array(
'none' => 'no Filter', '' => 'no Filter',
'done' => 'done', 'done' => 'done',
'responsible' => 'responsible', 'responsible' => 'responsible',
'responsible-open-today' => 'responsible open', 'responsible-open-today' => 'responsible open',

View File

@ -181,7 +181,7 @@ class infolog_so
/** /**
* generate sql to be AND'ed into a query to ensure ACL is respected (incl. _PRIVATE) * generate sql to be AND'ed into a query to ensure ACL is respected (incl. _PRIVATE)
* *
* @param string $filter: none|all - list all entrys user have rights to see<br> * @param string $filter: ''|all - list all entrys user have rights to see<br>
* private|own - list only his personal entrys (incl. those he is responsible for !!!), * private|own - list only his personal entrys (incl. those he is responsible for !!!),
* responsible|my = entries the user is responsible for * responsible|my = entries the user is responsible for
* delegated = entries the user delegated to someone else * delegated = entries the user delegated to someone else
@ -189,7 +189,7 @@ class infolog_so
*/ */
function aclFilter($filter = False) function aclFilter($filter = False)
{ {
preg_match('/(my|responsible|delegated|own|privat|private|all|none|user)([0-9,-]*)/',$filter_was=$filter,$vars); preg_match('/(my|responsible|delegated|own|privat|private|all|user)([0-9,-]*)/',$filter_was=$filter,$vars);
$filter = $vars[1]; $filter = $vars[1];
$f_user = $vars[2]; $f_user = $vars[2];