Skip to content

Commit

Permalink
fix: show attachments on notifications too (#25443) (#25448)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8e3175f)

Co-authored-by: Ankush Menat <ankush@frappe.io>
  • Loading branch information
mergify[bot] and ankush committed Mar 14, 2024
1 parent 2f3c90e commit 3251586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/desk/form/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def get_point_logs(doctype, docname):
def _get_communications(doctype, name, start=0, limit=20):
communications = get_communication_data(doctype, name, start, limit)
for c in communications:
if c.communication_type == "Communication":
if c.communication_type in ("Communication", "Automated Message"):
c.attachments = json.dumps(
frappe.get_all(
"File",
Expand Down

0 comments on commit 3251586

Please sign in to comment.