From 91974b05c96fcf16b879ddb7e2168028eb16332b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 11 Mar 2023 23:38:17 +0100 Subject: [PATCH] too many changes --- Admin/Installer.php | 6 ++++++ Controller/ApiController.php | 2 +- Models/EditorDocHistoryMapper.php | 2 +- Models/EditorDocMapper.php | 2 +- Models/EditorDocTypeL11nMapper.php | 2 +- Models/EditorDocTypeMapper.php | 2 +- composer.json | 2 +- info.json | 2 +- 8 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Admin/Installer.php b/Admin/Installer.php index 349c512..7c4a286 100755 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -152,7 +152,13 @@ final class Installer extends InstallerAbstract $type = $responseData['response']; $id = $type->getId(); + $isFirst = true; foreach ($data['l11n'] as $l11n) { + if ($isFirst) { + $isFirst = false; + continue; + } + $response = new HttpResponse(); $request = new HttpRequest(new HttpUri('')); diff --git a/Controller/ApiController.php b/Controller/ApiController.php index fcdaccf..74b0b4f 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -164,7 +164,7 @@ final class ApiController extends Controller $l11nEditorDocType = $this->createEditorDocTypeL11nFromRequest($request); $this->createModel($request->header->account, $l11nEditorDocType, EditorDocTypeL11nMapper::class, 'editor_doc_type_l11n', $request->getOrigin()); - $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Localization', 'Category localization successfully created', $l11nEditorDocType); + $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Localization', 'Localization successfully created', $l11nEditorDocType); } /** diff --git a/Models/EditorDocHistoryMapper.php b/Models/EditorDocHistoryMapper.php index 30a2a18..7a57bc2 100755 --- a/Models/EditorDocHistoryMapper.php +++ b/Models/EditorDocHistoryMapper.php @@ -70,7 +70,7 @@ final class EditorDocHistoryMapper extends DataMapperFactory * @var string * @since 1.0.0 */ - public const PRIMARYFIELD ='editor_doc_versioned_id'; + public const PRIMARYFIELD = 'editor_doc_versioned_id'; /** * Created at. diff --git a/Models/EditorDocMapper.php b/Models/EditorDocMapper.php index 9d8eea6..01f7afc 100755 --- a/Models/EditorDocMapper.php +++ b/Models/EditorDocMapper.php @@ -111,7 +111,7 @@ final class EditorDocMapper extends DataMapperFactory * @var string * @since 1.0.0 */ - public const PRIMARYFIELD ='editor_doc_id'; + public const PRIMARYFIELD = 'editor_doc_id'; /** * Created at. diff --git a/Models/EditorDocTypeL11nMapper.php b/Models/EditorDocTypeL11nMapper.php index 1e34c62..55fafe9 100755 --- a/Models/EditorDocTypeL11nMapper.php +++ b/Models/EditorDocTypeL11nMapper.php @@ -54,7 +54,7 @@ final class EditorDocTypeL11nMapper extends DataMapperFactory * @var string * @since 1.0.0 */ - public const PRIMARYFIELD ='editor_doc_type_l11n_id'; + public const PRIMARYFIELD = 'editor_doc_type_l11n_id'; /** * Model to use by the mapper. diff --git a/Models/EditorDocTypeMapper.php b/Models/EditorDocTypeMapper.php index d4140bf..afb3561 100755 --- a/Models/EditorDocTypeMapper.php +++ b/Models/EditorDocTypeMapper.php @@ -76,5 +76,5 @@ final class EditorDocTypeMapper extends DataMapperFactory * @var string * @since 1.0.0 */ - public const PRIMARYFIELD ='editor_doc_type_id'; + public const PRIMARYFIELD = 'editor_doc_type_id'; } diff --git a/composer.json b/composer.json index 15e8d01..6fc1e5d 100755 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "karaka/module", - "description": "Module for Karaka.", + "description": "Module for Jingga.", "authors": [ { "name": "Dennis Eichhorn", diff --git a/info.json b/info.json index 98e6b34..0d51098 100755 --- a/info.json +++ b/info.json @@ -11,7 +11,7 @@ "phpOMS-db": "1.0.0" }, "creator": { - "name": "Karaka", + "name": "Jingga", "website": "jingga.app" }, "description": "The administration module.",