From 18ea3b389d050d09b5bdaaf2eac7a338f2a6b953 Mon Sep 17 00:00:00 2001 From: "Guillaume (gdi)" Date: Tue, 25 Apr 2023 15:50:17 +0000 Subject: [PATCH] [FIX] website_blog: prevent the use of blog sidebar select Before this commit, the user could use the blog publication date selector situated in the blog sidebar even when he was in edit mode. This date selector should behave like a link, it should not work in edit mode. This commit prevents the user from using this selector while he is in edit mode. Steps to reproduce the bug: - Go to /blog - Edit the page - Enable the sidebar option - Click on the select in the sidebar - Click on a date => An error is displayed. task-3213851 closes odoo/odoo#121142 X-original-commit: 7e8e12c40b03d923b17831d95a5fe94410c2a56e Signed-off-by: Outagant Mehdi (mou) Signed-off-by: Dieleman Guillaume --- addons/website_blog/static/src/scss/website_blog.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/website_blog/static/src/scss/website_blog.scss b/addons/website_blog/static/src/scss/website_blog.scss index 00d6d2a7ec8..4ca89b404eb 100644 --- a/addons/website_blog/static/src/scss/website_blog.scss +++ b/addons/website_blog/static/src/scss/website_blog.scss @@ -277,6 +277,11 @@ $o-wblog-loader-size: 50px; #o_wblog_sidebar .oe_structure:empty { display: none; } + + // Prevent users from using the select in the sidebar during edit. + .o_wblog_sidebar_block select[name="archive"] { + pointer-events: none; + } } }