Skip to content

Commit

Permalink
fix(api): wrong field name for team
Browse files Browse the repository at this point in the history
NOTE: `agent_group` should be replaced by `team`. but is skipping now
because of other priorities
  • Loading branch information
ssiyad committed Jun 20, 2023
1 parent 493c0a6 commit c023852
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions desk/src/pages/desk/escalation/EscalationRuleList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ function openRule(id: string) {
showRule.value = true;
}
socket.on("helpdesk:new-escalation-rule", () => {
if (!rules.hasPreviousPage) rules.reload();
});
socket.on("helpdesk:new-escalation-rule", () => rules.reload());
socket.on("helpdesk:delete-escalation-rule", () => rules.reload());
</script>
3 changes: 2 additions & 1 deletion helpdesk/helpdesk/doctype/hd_ticket/hd_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,9 @@ def reopen(self):
frappe.throw(_("Only resolved tickets can be reopened"))

if escalation_rule := self.get_escalation_rule():
self.agent_group = escalation_rule.to_team or self.team
self.agent_group = escalation_rule.to_team or self.agent_group
self.priority = escalation_rule.to_priority or self.priority
self.ticket_type = escalation_rule.to_ticket_type or self.ticket_type
self.assign_agent(escalation_rule.to_agent)

self.status = "Open"
Expand Down

0 comments on commit c023852

Please sign in to comment.