From e1a9f3f23ecc746d9c802dae5fcc2d7c73fe417c Mon Sep 17 00:00:00 2001 From: Vivek Pathak Date: Mon, 28 Aug 2023 15:41:00 +0530 Subject: [PATCH] [FIX] website_forum: modify notification message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before Commit: Currently, when a user marks their answer as the best answer in the forum, an error notification appears with the message 'Sorry, you cannot vote for your own posts' However, this error message lacks clarity and does not clarify the underlying issue. After Commit: Now the error message is modified to 'Sorry, you cannot select your own posts as the best answer' Task-3481264 closes odoo/odoo#135193 Signed-off-by: Stéphane Debauche (std) --- addons/website_forum/static/src/js/website_forum.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_forum/static/src/js/website_forum.js b/addons/website_forum/static/src/js/website_forum.js index b4630ccc07a..9ecb2d218b8 100644 --- a/addons/website_forum/static/src/js/website_forum.js +++ b/addons/website_forum/static/src/js/website_forum.js @@ -470,7 +470,7 @@ publicWidget.registry.websiteForum = publicWidget.Widget.extend({ const message = data.error === 'anonymous_user' ? _t('Sorry, anonymous users cannot choose correct answers.') : data.error === 'own_post' - ? _t('Sorry, you cannot vote for your own posts') + ? _t('Sorry, you cannot select your own posts as best answer') : data.error; this._displayAccessDeniedNotification(message); return;