summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorParth Choksi <pch@odoo.com>2019-04-05 08:46:35 +0000
committerParth Choksi <pch@odoo.com>2019-04-05 11:34:19 +0000
commitdc44bf3b6a630cf63d959f4a4d43ed6c207a62f8 (patch)
treef2723422f98d43c257a7175a53eaa4419a1730ae /addons
parent14804b2cd101cf19897791e90c39db4187632bef (diff)
[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
Diffstat (limited to 'addons')
-rw-r--r--addons/website/static/src/js/menu/seo.js4
1 files 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(', ');