chore: fix get single value call
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
parent
5bda28eae6
commit
33bf0574a3
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user