fix: linking party in calendar event of appointment (#20458)

This commit is contained in:
Pranav Nachnekar 2020-01-29 07:31:25 +00:00 committed by GitHub
parent 47ba65edc0
commit d64135b2d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,7 +174,7 @@ class Appointment(Document):
'status': 'Open',
'type': 'Public',
'send_reminder': frappe.db.get_single_value('Appointment Booking Settings', 'email_reminders'),
'event_participants': [dict(reference_doctype='Lead', reference_docname=self.party)]
'event_participants': [dict(reference_doctype=self.appointment_with, reference_docname=self.party)]
})
employee = _get_employee_from_user(self._assign)
if employee: