chore: fix get single value call

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
Chinmay D. Pai 2020-07-19 15:54:11 +05:30
parent 5bda28eae6
commit 33bf0574a3
No known key found for this signature in database
GPG Key ID: 75507BE256F40CED

View File

@ -12,7 +12,7 @@ class ProductsSettings(Document):
def validate(self):
if self.home_page_is_products:
frappe.db.set_value("Website Settings", "home_page", "products")
elif frappe.get_single_value("Website Settings", "home_page") == 'products':
elif frappe.db.get_single_value("Website Settings", "home_page") == 'products':
frappe.db.set_value("Website Settings", "home_page", "home")
self.validate_field_filters()