* Fix bug#21208.
This commit is contained in:
@@ -1734,13 +1734,12 @@ class block extends control
|
||||
->where('deleted')->eq(0)
|
||||
->andWhere('assignedTo')->eq($this->app->user->account)->fi()
|
||||
->beginIF($objectType == 'story')->andWhere('type')->eq('story')->fi()
|
||||
->beginIF($objectType == 'todo')->andWhere('cycle')->eq(0)->fi()
|
||||
->beginIF($objectType == 'todo')->andWhere('status')->eq('wait')->fi()
|
||||
->beginIF($objectType == 'todo')->andWhere('cycle')->eq(0)->andWhere('status')->eq('wait')->andWhere('vision')->eq($this->config->vision)->fi()
|
||||
->beginIF($objectType != 'todo')->andWhere('status')->ne('closed')->fi()
|
||||
->orderBy($orderBy)
|
||||
->beginIF($limitCount)->limit($limitCount)->fi()
|
||||
->fetchAll();
|
||||
|
||||
|
||||
if($objectType == 'todo')
|
||||
{
|
||||
$this->app->loadClass('date');
|
||||
|
||||
Reference in New Issue
Block a user