diff --git a/Controller/BackendController.php b/Controller/BackendController.php index bfe506a..847cda6 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -275,7 +275,7 @@ public function viewTaskView(RequestAbstract $request, ResponseAbstract $respons ->with('tags/title') ->with('taskElements') ->with('taskElements/createdBy') - ->with('taskElements/media') + ->with('taskElements/files') ->with('taskElements/accRelation') ->with('taskElements/accRelation/relation') ->with('attributes') diff --git a/tests/Models/TaskMapperTest.php b/tests/Models/TaskMapperTest.php index de59ce4..476ef0f 100755 --- a/tests/Models/TaskMapperTest.php +++ b/tests/Models/TaskMapperTest.php @@ -95,13 +95,14 @@ public function testCRUD() : void $taskR = TaskMapper::get() ->with('files') ->with('taskElements') - ->with('taskElements/media') + ->with('taskElements/files') ->with('taskElements/accRelation') ->with('taskElements/accRelation/relation') ->with('taskElements/grpRelation') ->with('taskElements/grpRelation/relation') ->where('id', $task->id) ->execute(); + self::assertEquals($task->createdAt->format('Y-m-d'), $taskR->createdAt->format('Y-m-d')); self::assertEquals($task->start->format('Y-m-d'), $taskR->start->format('Y-m-d')); self::assertEquals($task->getCreatedBy()->id, $taskR->getCreatedBy()->id);