List only active tasks
This commit is contained in:
parent
f62efc97f7
commit
367ea4ce0b
@ -3,7 +3,8 @@ class JobTaskController extends ApplicationController
|
|||||||
{
|
{
|
||||||
public function index()
|
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()
|
public function show()
|
||||||
|
Reference in New Issue
Block a user