Skip to content

Commit

Permalink
fix: remove bad default for anniversary reminders (#27632)
Browse files Browse the repository at this point in the history
🤦
  • Loading branch information
ankush authored Sep 21, 2021
1 parent 9110223 commit c302c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/hr/doctype/employee/employee_reminders.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def get_employees_having_an_event_today(event_type):
# --------------------------
def send_work_anniversary_reminders():
"""Send Employee Work Anniversary Reminders if 'Send Work Anniversary Reminders' is checked"""
to_send = int(frappe.db.get_single_value("HR Settings", "send_work_anniversary_reminders") or 1)
to_send = int(frappe.db.get_single_value("HR Settings", "send_work_anniversary_reminders"))
if not to_send:
return

Expand Down

0 comments on commit c302c7a

Please sign in to comment.