From 5820567c6185c4a01582fc12c7dccf7d7b85abd2 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 12 May 2024 00:03:34 +0000 Subject: [PATCH] bug fixes --- .github/workflows/greetings.yml | 2 +- Controller/ApiController.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index adb8716..75cb759 100755 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -9,5 +9,5 @@ jobs: - uses: actions/first-interaction@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-message: 'Thank you for createing this issue. We will check it as soon as possible.' + issue-message: 'Thank you for creating this issue. We will check it as soon as possible.' pr-message: 'Thank you for your pull request. We will check it as soon as possible.' diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 82a77f6..60ae765 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -207,9 +207,11 @@ final class ApiController extends Controller $doc->content = EncryptionHelper::encryptShared($doc->content, $_SERVER['OMS_PRIVATE_KEY_I']); } + /* if ($request->hasData('tags')) { $doc->tags = $this->app->moduleManager->get('Tag', 'Api')->createTagsFromRequest($request); } + */ return $doc; } @@ -365,7 +367,7 @@ final class ApiController extends Controller basePath: __DIR__ . '/../../../Modules/Media/Files/Modules/Editor/' . ($request->getData('doc') ?? '0'), virtualPath: '/Modules/Editor/' . ($request->getData('doc') ?? '0'), pathSettings: PathSettings::FILE_PATH, - type: $request->getDataInt('type'), + tag: $request->getDataInt('tag'), rel: (int) $request->getDataInt('doc'), mapper: EditorDocMapper::class, field: 'files'