Skip to content

Commit

Permalink
fix: remove bad default for anniversary reminders (#27632) (#27633)
Browse files Browse the repository at this point in the history
🤦

(cherry picked from commit c302c7a)

Co-authored-by: Ankush Menat <ankush@iwebnotes.com>
  • Loading branch information
frappe-pr-bot and ankush authored Sep 21, 2021
1 parent 47c6fba commit 5a8d57f
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 5a8d57f

Please sign in to comment.