mirror of
https://github.com/Karaka-Management/oms-Comments.git
synced 2026-01-11 16:18:41 +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
|
||||
{
|
||||
$new->allowEdit = $request->getDataBool('allow_edit') ?? $new->allowEdit;
|
||||
$new->allowVoting = $request->getDataBool('allow_voting') ?? $new->allowVoting;
|
||||
$new->allowFiles = $request->getDataBool('allow_upload') ?? $new->allowFiles;
|
||||
$new->allowEdit = $request->getDataBool('allow_edit') ?? false;
|
||||
$new->allowVoting = $request->getDataBool('allow_voting') ?? false;
|
||||
$new->allowFiles = $request->getDataBool('allow_upload') ?? false;
|
||||
$new->status = $request->getDataInt('commentlist_status') ?? $new->status;
|
||||
|
||||
return $new;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user