Skip to content

Commit

Permalink
fix(api): agent_name missing
Browse files Browse the repository at this point in the history
  • Loading branch information
ssiyad committed Jul 17, 2023
1 parent dff13e9 commit 0b441cd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion helpdesk/helpdesk/doctype/hd_agent/hd_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def add_to_support_rotations(self, group=None):
frappe.throw(
frappe._(
"Agent {0} does not belong to team {1}".format(
self.hd_agent_name, group
self.agent_name, group
)
)
)
Expand Down
3 changes: 0 additions & 3 deletions helpdesk/helpdesk/doctype/hd_ticket/hd_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,6 @@ def assign_agent(self, agent):

clear_all_assignments("HD Ticket", self.name)
assign({"assign_to": [agent], "doctype": "HD Ticket", "name": self.name})
agent_name = frappe.get_value("HD Agent", agent, "agent_name")
log_ticket_activity(self.name, f"assigned to {agent_name}")

publish_event("helpdesk:ticket-assignee-update", {"name": self.name})

def get_assigned_agent(self):
Expand Down

0 comments on commit 0b441cd

Please sign in to comment.