mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-21 03:30:38 +00:00
Comments: Fixed failing tests due to unset template variable
This commit is contained in:
parent
9a2ef7ef44
commit
88aae5b004
1 changed files with 2 additions and 1 deletions
|
@ -42,6 +42,7 @@ class CommentController extends Controller
|
||||||
$comment = $this->commentRepo->create($page, $request->get('text'), $request->get('parent_id'));
|
$comment = $this->commentRepo->create($page, $request->get('text'), $request->get('parent_id'));
|
||||||
|
|
||||||
return view('comments.comment-branch', [
|
return view('comments.comment-branch', [
|
||||||
|
'readOnly' => false,
|
||||||
'branch' => [
|
'branch' => [
|
||||||
'comment' => $comment,
|
'comment' => $comment,
|
||||||
'children' => [],
|
'children' => [],
|
||||||
|
@ -66,7 +67,7 @@ class CommentController extends Controller
|
||||||
|
|
||||||
$comment = $this->commentRepo->update($comment, $request->get('text'));
|
$comment = $this->commentRepo->update($comment, $request->get('text'));
|
||||||
|
|
||||||
return view('comments.comment', ['comment' => $comment]);
|
return view('comments.comment', ['comment' => $comment, 'readOnly' => false]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue