Skip to content

Commit

Permalink
chore: rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
RitvikSardana committed Dec 18, 2024
1 parent 7d5c845 commit 84af03f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helpdesk/helpdesk/doctype/hd_ticket/hd_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def reply_via_agent(
file_doc.attached_to_name = communication.name
file_doc.attached_to_doctype = "Communication"
file_doc.save(ignore_permissions=True)
self.attach_ticket_with_file(file_doc.file_url)
self.attach_file_with_ticket(file_doc.file_url)

_attachments.append({"file_url": file_doc.file_url})

Expand Down Expand Up @@ -653,7 +653,7 @@ def create_communication_via_contact(self, message, attachments=[]):
"File", filters={"attached_to_name": c.name}, pluck="file_url"
)
for url in file_urls:
self.attach_ticket_with_file(url)
self.attach_file_with_ticket(url)

@frappe.whitelist()
def mark_seen(self):
Expand Down Expand Up @@ -760,7 +760,7 @@ def on_communication_update(self, c):
# Save the ticket, allowing for hooks to run.
self.save()

def attach_ticket_with_file(self, file_url):
def attach_file_with_ticket(self, file_url):
file_doc = frappe.new_doc("File")
file_doc.attached_to_name = self.name
file_doc.attached_to_doctype = "HD Ticket"
Expand Down

0 comments on commit 84af03f

Please sign in to comment.