mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-14 07:47:12 +00:00
chore: fix get single value call
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user