Skip to content

Commit

Permalink
fix(ux): use template only if raised via customer portal (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssiyad committed May 3, 2023
1 parent fac209d commit cd9fd9b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions helpdesk/helpdesk/doctype/hd_ticket/hd_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,11 @@ def reply_via_agent(
frappe.throw(_("Can not send email. No sender email set up!"))

reply_to_email = sender_email.email_id
template = "new_reply_on_customer_portal_notification"
template = (
"new_reply_on_customer_portal_notification"
if self.via_customer_portal
else None
)
args = {
"message": message,
"portal_link": self.portal_uri,
Expand Down Expand Up @@ -476,7 +480,7 @@ def reply_via_agent(
sender=reply_to_email,
subject=subject,
template=template,
with_container=True,
with_container=False,
)
except Exception as e:
frappe.throw(_(e))
Expand Down

0 comments on commit cd9fd9b

Please sign in to comment.