Skip to content

Commit

Permalink
fix: stop duplicate communication in HD Ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
RitvikSardana committed Nov 29, 2024
1 parent 4184899 commit b64aba6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion helpdesk/helpdesk/doctype/hd_ticket/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def new(doc, attachments=[]):
doc["doctype"] = "HD Ticket"
doc["via_customer_portal"] = bool(frappe.session.user)
d = frappe.get_doc(doc).insert()
d.create_communication_via_contact(d.description, attachments)
return d


Expand Down
1 change: 0 additions & 1 deletion helpdesk/helpdesk/doctype/hd_ticket/hd_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ def after_insert(self):
log_ticket_activity(self.name, "created this ticket")
capture_event("ticket_created")
publish_event("helpdesk:new-ticket", {"name": self.name})

if self.get("description"):
self.create_communication_via_contact(self.description)

Expand Down

0 comments on commit b64aba6

Please sign in to comment.