From dc44bf3b6a630cf63d959f4a4d43ed6c207a62f8 Mon Sep 17 00:00:00 2001 From: Parth Choksi Date: Fri, 5 Apr 2019 08:46:35 +0000 Subject: [PATCH] [FIX] website: allow empty strings in title and meta description Before this commit, In SEO dialog once you set the title and description, it was not possible to reset title and description. The reason behind the issue was, update method was taking title and description from DOM instead of dialog inputs. After this commit, you will be able to save empty strings in the title and description. Once user will do this, the page will use default title. Task ID:1949636 --- addons/website/static/src/js/menu/seo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website/static/src/js/menu/seo.js b/addons/website/static/src/js/menu/seo.js index 76db9d9f939..85d959cb3c6 100644 --- a/addons/website/static/src/js/menu/seo.js +++ b/addons/website/static/src/js/menu/seo.js @@ -703,10 +703,10 @@ var SeoConfigurator = Dialog.extend({ var self = this; var data = {}; if (this.canEditTitle) { - data.website_meta_title = this.htmlPage.title(); + data.website_meta_title = this.metaTitleDescription.$title.val(); } if (this.canEditDescription) { - data.website_meta_description = this.htmlPage.description(); + data.website_meta_description = this.metaTitleDescription.$description.val(); } if (this.canEditKeywords) { data.website_meta_keywords = this.metaKeywords.keywordList.keywords().join(', ');