fix complex filter

This commit is contained in:
DavidBadura
2015-04-22 14:33:35 +00:00
parent 8385e7e7c5
commit 682561a58e
5 changed files with 31 additions and 53 deletions

View File

@@ -90,15 +90,11 @@ class TaskManager
}
/**
* @param string|array $filter
* @param string $filter
* @return Task[]|ArrayCollection
*/
public function filterAll($filter = null)
{
if (is_string($filter)) {
$filter = explode(' ', $filter);
}
$result = $this->export($filter);
foreach ($result as $key => $task) {