fix: get value with ignore=True

This commit is contained in:
s-aga-r 2024-08-03 09:35:15 +05:30
parent c4aa49743e
commit e9e327104d

View file

@ -59,9 +59,10 @@ def is_email_notifications_enabled_for_type(user, notification_type):
return False
fieldname = "enable_email_" + frappe.scrub(notification_type)
enabled = frappe.db.get_value("Notification Settings", user, fieldname)
enabled = frappe.db.get_value("Notification Settings", user, fieldname, ignore=True)
if enabled is None:
return True
return enabled