List only active tasks

This commit is contained in:
Renzo 2016-07-30 00:30:32 -05:00
parent f62efc97f7
commit 367ea4ce0b

View File

@ -3,7 +3,8 @@ class JobTaskController extends ApplicationController
{
public function index()
{
$this->job_tasks = JobTask::order("id DESC")->paginate($this->page_number(), 25);
$activeTypes = "'" . implode("', '", CONFIG()->active_job_tasks) . "'";
$this->job_tasks = JobTask::order("id DESC")->where("task_type IN ($activeTypes)")->paginate($this->page_number(), 25);
}
public function show()