bug fixes

This commit is contained in:
Dennis Eichhorn 2024-05-12 00:03:34 +00:00
parent cdb9bb90d5
commit 5820567c61
2 changed files with 4 additions and 2 deletions

View File

@ -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.'

View File

@ -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'