mirror of
https://github.com/Karaka-Management/oms-Comments.git
synced 2026-02-18 10:18:42 +00:00
draft comment create/show
This commit is contained in:
parent
e6bf3ccd56
commit
5aa891bffb
|
|
@ -111,8 +111,8 @@ final class ApiController extends Controller
|
||||||
private function validateCommentCreate(RequestAbstract $request) : array
|
private function validateCommentCreate(RequestAbstract $request) : array
|
||||||
{
|
{
|
||||||
$val = [];
|
$val = [];
|
||||||
if (($val['title'] = empty($request->getData('title')))
|
if (($val['plain'] = empty($request->getData('plain')))
|
||||||
|| ($val['plain'] = empty($request->getData('plain')))
|
|| ($val['list'] = empty($request->getData('list')))
|
||||||
) {
|
) {
|
||||||
return $val;
|
return $val;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ class ListView extends View
|
||||||
*/
|
*/
|
||||||
public function render(...$data) : string
|
public function render(...$data) : string
|
||||||
{
|
{
|
||||||
$this->list = $data[0];
|
$this->commentList = $data[0];
|
||||||
|
|
||||||
return parent::render();
|
return parent::render();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user