mirror of
https://github.com/Karaka-Management/oms-Comments.git
synced 2026-02-11 06:58:41 +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
|
||||
{
|
||||
$val = [];
|
||||
if (($val['title'] = empty($request->getData('title')))
|
||||
|| ($val['plain'] = empty($request->getData('plain')))
|
||||
if (($val['plain'] = empty($request->getData('plain')))
|
||||
|| ($val['list'] = empty($request->getData('list')))
|
||||
) {
|
||||
return $val;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ class ListView extends View
|
|||
*/
|
||||
public function render(...$data) : string
|
||||
{
|
||||
$this->list = $data[0];
|
||||
$this->commentList = $data[0];
|
||||
|
||||
return parent::render();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user