From 29a5240f640291f724c8781f3d291f45c1ac39bb Mon Sep 17 00:00:00 2001 From: liji <25699440@qq.com> Date: Thu, 17 Nov 2016 17:19:26 +0800 Subject: [PATCH] fix:discussion was not updated correctly after approval --- extensions/approval/src/Listener/ApproveContent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/approval/src/Listener/ApproveContent.php b/extensions/approval/src/Listener/ApproveContent.php index 5e9e81041..e88861f84 100644 --- a/extensions/approval/src/Listener/ApproveContent.php +++ b/extensions/approval/src/Listener/ApproveContent.php @@ -63,7 +63,7 @@ class ApproveContent if ($post->number == 1) { $post->discussion->is_approved = true; - $post->discussion->save(); } + $post->discussion->save(); } }