mirror of
https://github.com/Karaka-Management/oms-Comments.git
synced 2026-02-16 17:28:42 +00:00
fix checkbox update
This commit is contained in:
parent
2fb040f6da
commit
cf562689ce
|
|
@ -116,9 +116,9 @@ final class ApiController extends Controller
|
||||||
*/
|
*/
|
||||||
private function updateCommentListFromRequest(RequestAbstract $request, CommentList $new) : CommentList
|
private function updateCommentListFromRequest(RequestAbstract $request, CommentList $new) : CommentList
|
||||||
{
|
{
|
||||||
$new->allowEdit = $request->getDataBool('allow_edit') ?? $new->allowEdit;
|
$new->allowEdit = $request->getDataBool('allow_edit') ?? false;
|
||||||
$new->allowVoting = $request->getDataBool('allow_voting') ?? $new->allowVoting;
|
$new->allowVoting = $request->getDataBool('allow_voting') ?? false;
|
||||||
$new->allowFiles = $request->getDataBool('allow_upload') ?? $new->allowFiles;
|
$new->allowFiles = $request->getDataBool('allow_upload') ?? false;
|
||||||
$new->status = $request->getDataInt('commentlist_status') ?? $new->status;
|
$new->status = $request->getDataInt('commentlist_status') ?? $new->status;
|
||||||
|
|
||||||
return $new;
|
return $new;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user