From c0865c816fe44fceedaea54acadac1fb1eedbeab Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Mon, 3 Jul 2023 18:52:44 +0800 Subject: [PATCH] * Change param type. --- module/task/control.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module/task/control.php b/module/task/control.php index 18691364a4..d868d89251 100755 --- a/module/task/control.php +++ b/module/task/control.php @@ -970,15 +970,16 @@ class task extends control $user = $this->loadModel('user')->getById($userID, 'id'); $account = $user->account; - $tasks = $this->task->getUserTaskPairs($account, $status, '', $appendID); + $tasks = $this->task->getUserTaskPairs($account, $status, array(), array($appendID)); $suspendedTasks = $this->task->getUserSuspendedTasks($account); foreach($tasks as $taskid => $task) { if(isset($suspendedTasks[$taskid])) unset($tasks[$taskid]); } - if($id) return print(html::select("tasks[$id]", $tasks, '', 'class="form-control"')); - echo html::select('task', $tasks, '', 'class=form-control'); + $this->view->id = $id; + $this->view->tasks = $tasks; + $this->display(); } /**