mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-01-14 21:36:44 +00:00
fix rest api endpoint PUT /folder/{id}/comment
This commit is contained in:
parent
736c30623a
commit
04952692d3
|
|
@ -2659,8 +2659,8 @@ final class SeedDMS_RestapiController { /* {{{ */
|
|||
|
||||
$params = $request->getParsedBody();
|
||||
/* Setting an empty comment is allowed. */
|
||||
if ($params['comment']) {
|
||||
return $this->renderer->json($response, array('success'=>false, 'message'=>'You must supply a new name', 'data'=>''))->withStatus(400);
|
||||
if (empty($params['comment'])) {
|
||||
return $this->renderer->json($response, array('success'=>false, 'message'=>'You must supply a new comment', 'data'=>''))->withStatus(400);
|
||||
}
|
||||
|
||||
$newcomment = $params['comment'];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user