Merge pull request #24166 from scmmishra/appointment-fix

fix: wrap assignees in a list
This commit is contained in:
Anurag Mishra 2020-12-17 16:00:48 +05:30 committed by GitHub
commit 7e641f457c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ class Appointment(Document):
add_assignemnt({
'doctype': self.doctype,
'name': self.name,
'assign_to': existing_assignee
'assign_to': [existing_assignee]
})
return
if self._assign:
@ -139,7 +139,7 @@ class Appointment(Document):
add_assignemnt({
'doctype': self.doctype,
'name': self.name,
'assign_to': agent
'assign_to': [agent]
})
break