From: Dan Brown Date: Fri, 16 Jun 2023 12:17:11 +0000 (+0100) Subject: Comments: Fixed failing tests due to unset template variable X-Git-Tag: v23.06~1^2~18^2^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/refs/pull/4322/head?ds=sidebyside Comments: Fixed failing tests due to unset template variable --- diff --git a/app/Activity/Controllers/CommentController.php b/app/Activity/Controllers/CommentController.php index 9e7491fd7..516bcac75 100644 --- a/app/Activity/Controllers/CommentController.php +++ b/app/Activity/Controllers/CommentController.php @@ -42,6 +42,7 @@ class CommentController extends Controller $comment = $this->commentRepo->create($page, $request->get('text'), $request->get('parent_id')); return view('comments.comment-branch', [ + 'readOnly' => false, 'branch' => [ 'comment' => $comment, 'children' => [], @@ -66,7 +67,7 @@ class CommentController extends Controller $comment = $this->commentRepo->update($comment, $request->get('text')); - return view('comments.comment', ['comment' => $comment]); + return view('comments.comment', ['comment' => $comment, 'readOnly' => false]); } /**