Rerender package comments after editing
diff mbox

Message ID 20170423192345.4979-1-lfleischer@archlinux.org
State Accepted, archived
Headers show

Commit Message

Lukas Fleischer April 23, 2017, 7:23 p.m. UTC
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
---
 web/lib/pkgbasefuncs.inc.php | 3 +++
 1 file changed, 3 insertions(+)

Patch
diff mbox

diff --git a/web/lib/pkgbasefuncs.inc.php b/web/lib/pkgbasefuncs.inc.php
index 3e78309..ff1bc90 100644
--- a/web/lib/pkgbasefuncs.inc.php
+++ b/web/lib/pkgbasefuncs.inc.php
@@ -1041,6 +1041,9 @@  function pkgbase_edit_comment($comment) {
 		$q.= "EditedTS = " . strval(time()) . " ";
 		$q.= "WHERE ID = ".intval($comment_id);
 		$dbh->exec($q);
+
+		render_comment($comment_id);
+
 		return array(true, __("Comment has been edited."));
 	} else {
 		return array(false, __("You are not allowed to edit this comment."));