Added search in activity stream
This commit is contained in:
@@ -32,7 +32,12 @@ class TaskProjectsFilter extends BaseFilter implements FilterInterface
|
||||
*/
|
||||
public function apply()
|
||||
{
|
||||
$this->query->in(Task::TABLE.'.project_id', $this->value);
|
||||
if (empty($this->value)) {
|
||||
$this->query->eq(Task::TABLE.'.project_id', 0);
|
||||
} else {
|
||||
$this->query->in(Task::TABLE.'.project_id', $this->value);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user