mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-16 02:08:40 +00:00
too many changes
This commit is contained in:
parent
781f547c96
commit
91974b05c9
|
|
@ -152,7 +152,13 @@ final class Installer extends InstallerAbstract
|
||||||
$type = $responseData['response'];
|
$type = $responseData['response'];
|
||||||
$id = $type->getId();
|
$id = $type->getId();
|
||||||
|
|
||||||
|
$isFirst = true;
|
||||||
foreach ($data['l11n'] as $l11n) {
|
foreach ($data['l11n'] as $l11n) {
|
||||||
|
if ($isFirst) {
|
||||||
|
$isFirst = false;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$response = new HttpResponse();
|
$response = new HttpResponse();
|
||||||
$request = new HttpRequest(new HttpUri(''));
|
$request = new HttpRequest(new HttpUri(''));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -164,7 +164,7 @@ final class ApiController extends Controller
|
||||||
$l11nEditorDocType = $this->createEditorDocTypeL11nFromRequest($request);
|
$l11nEditorDocType = $this->createEditorDocTypeL11nFromRequest($request);
|
||||||
$this->createModel($request->header->account, $l11nEditorDocType, EditorDocTypeL11nMapper::class, 'editor_doc_type_l11n', $request->getOrigin());
|
$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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ final class EditorDocHistoryMapper extends DataMapperFactory
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const PRIMARYFIELD ='editor_doc_versioned_id';
|
public const PRIMARYFIELD = 'editor_doc_versioned_id';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created at.
|
* Created at.
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ final class EditorDocMapper extends DataMapperFactory
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const PRIMARYFIELD ='editor_doc_id';
|
public const PRIMARYFIELD = 'editor_doc_id';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created at.
|
* Created at.
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ final class EditorDocTypeL11nMapper extends DataMapperFactory
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @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.
|
* Model to use by the mapper.
|
||||||
|
|
|
||||||
|
|
@ -76,5 +76,5 @@ final class EditorDocTypeMapper extends DataMapperFactory
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const PRIMARYFIELD ='editor_doc_type_id';
|
public const PRIMARYFIELD = 'editor_doc_type_id';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "karaka/module",
|
"name": "karaka/module",
|
||||||
"description": "Module for Karaka.",
|
"description": "Module for Jingga.",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Dennis Eichhorn",
|
"name": "Dennis Eichhorn",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user