]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
9a2ef7e
)
Comments: Fixed failing tests due to unset template variable
4322/head
author
Dan Brown
<redacted>
Fri, 16 Jun 2023 12:17:11 +0000
(13:17 +0100)
committer
Dan Brown
<redacted>
Fri, 16 Jun 2023 12:17:11 +0000
(13:17 +0100)
app/Activity/Controllers/CommentController.php
patch
|
blob
|
history
diff --git
a/app/Activity/Controllers/CommentController.php
b/app/Activity/Controllers/CommentController.php
index 9e7491fd7c71dfa2bea24ff675406ca5e9f5ee53..516bcac759a981921c3e610cd1c9dba65fdb9214 100644
(file)
--- 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
]);
}
/**