[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
This commit is contained in:
Parth Choksi
2019-04-05 11:34:19 +00:00
parent 14804b2cd1
commit dc44bf3b6a
+2 -2
View File
@@ -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(', ');