diff --git a/Controller/ApiController.php b/Controller/ApiController.php index a52d3d6..71c10d0 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -240,7 +240,7 @@ final class ApiController extends Controller ->with('tasks/files') ->with('tasks/tags') ->with('tasks/attributes') - ->where('id', (int) $request->getData('id')) + ->where('id', $request->getDataInt('id') ?? 0) ->execute(); $checklist = new Checklist(); diff --git a/Controller/BackendController.php b/Controller/BackendController.php index f7bc376..5b4555a 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -83,7 +83,7 @@ final class BackendController extends Controller ->with('tasks/taskElements/accRelation/relation') ->with('tasks/taskElements/grpRelation') ->with('tasks/taskElements/grpRelation/relation') - ->where('id', (int) $request->getData('id')) + ->where('id', $request->getDataInt('id') ?? 0) ->sort('tasks/due', OrderType::ASC) ->execute(); @@ -161,7 +161,7 @@ final class BackendController extends Controller ->with('tasks/taskElements/accRelation/relation') ->with('tasks/taskElements/grpRelation') ->with('tasks/taskElements/grpRelation/relation') - ->where('id', (int) $request->getData('id')) + ->where('id', $request->getDataInt('id') ?? 0) ->sort('tasks/due', OrderType::ASC) ->execute(); diff --git a/Theme/Backend/checklist-task.tpl.php b/Theme/Backend/checklist-task.tpl.php index 22dd650..85f67ad 100644 --- a/Theme/Backend/checklist-task.tpl.php +++ b/Theme/Backend/checklist-task.tpl.php @@ -26,12 +26,12 @@ echo $this->data['nav']->render(); ?>