From a8dbd79ba57046e2616abe9371b917eb83bd57a0 Mon Sep 17 00:00:00 2001 From: Bogdanova Olga Date: Sat, 27 Mar 2021 13:40:26 +0300 Subject: [PATCH] Issues-476: Fixed challenge roles for new comments --- Topcoder/class.topcoder.plugin.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Topcoder/class.topcoder.plugin.php b/Topcoder/class.topcoder.plugin.php index 68dc2c5..0d11db4 100644 --- a/Topcoder/class.topcoder.plugin.php +++ b/Topcoder/class.topcoder.plugin.php @@ -827,6 +827,12 @@ public function userController_UserCell_handler($sender, $args) { getID($discussionID); + if($discussion->CategoryID){ + $categoryModel = new CategoryModel(); + $category = $categoryModel->getID($discussion->CategoryID); + $groupID = $category->GroupID; + } + } else if (array_key_exists('commentid', $methodArgs)) { $commentID = $methodArgs['commentid']; $commentModel = new CommentModel(); $comment = $commentModel->getID($commentID);