mirror of
https://github.com/Karaka-Management/oms-Comments.git
synced 2026-02-16 17:28:42 +00:00
Fix types
This commit is contained in:
parent
d7ee8f2c70
commit
7ce11b8928
|
|
@ -161,17 +161,17 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
*/
|
*/
|
||||||
public function apiCommentCreate(RequestAbstract $request, ResponseAbstract $response, $data = null)
|
public function apiCommentCreate(RequestAbstract $request, ResponseAbstract $response, $data = null)
|
||||||
{
|
{
|
||||||
if (!empty($val = $this->validateEditorCreate($request))) {
|
if (!empty($val = $this->validateCommentCreate($request))) {
|
||||||
$response->set('editor_create', new FormValidation($val));
|
$response->set('comment_create', new FormValidation($val));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$editorArticle = new Editor();
|
$comment = new Comment();
|
||||||
|
|
||||||
EditorMapper::create($editorArticle);
|
CommentMapper::create($comment);
|
||||||
|
|
||||||
$response->set('editor', $editorArticle->jsonSerialize());
|
$response->set('comment', $comment->jsonSerialize());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user