From 7ddc44fa1f94145ae872e78967e952e6e6ed871d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 30 Jan 2024 21:29:21 +0000 Subject: [PATCH] bump --- Controller/ApiController.php | 8 ++++---- Models/TaskMapper.php | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index aee99a4..0daf12a 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -212,7 +212,7 @@ private function createTaskMedia(Task $task, RequestAbstract $request) : void $task->id, $media->id, TaskMapper::class, - 'media', + 'files', '', $request->getOrigin() ); @@ -273,7 +273,7 @@ private function createTaskMedia(Task $task, RequestAbstract $request) : void $task->id, $media->id, TaskMapper::class, - 'media', + 'files', '', $request->getOrigin() ); @@ -555,7 +555,7 @@ private function createTaskElementMedia(Task $task, TaskElement $element, Reques $element->id, $media->id, TaskElementMapper::class, - 'media', + 'files', '', $request->getOrigin() ); @@ -609,7 +609,7 @@ private function createTaskElementMedia(Task $task, TaskElement $element, Reques $element->id, $media->id, TaskElementMapper::class, - 'media', + 'files', '', $request->getOrigin() ); diff --git a/Models/TaskMapper.php b/Models/TaskMapper.php index d2cdc3c..3c239c1 100755 --- a/Models/TaskMapper.php +++ b/Models/TaskMapper.php @@ -19,6 +19,7 @@ use Modules\Media\Models\MediaMapper; use Modules\Tag\Models\TagMapper; use Modules\Tasks\Models\Attribute\TaskAttributeMapper; +use phpOMS\DataStorage\Database\Mapper\DataMapperAbstract; use phpOMS\DataStorage\Database\Mapper\DataMapperFactory; use phpOMS\DataStorage\Database\Mapper\ReadMapper; use phpOMS\DataStorage\Database\Query\Builder;