diff --git a/crm/api/activities.py b/crm/api/activities.py index 7f6fb689..2753ada7 100644 --- a/crm/api/activities.py +++ b/crm/api/activities.py @@ -124,6 +124,7 @@ def get_deal_activities(name): activity = { "activity_type": "communication", "communication_type": communication.communication_type, + "communication_date": communication.communication_date or communication.creation, "creation": communication.creation, "data": { "subject": communication.subject, @@ -255,6 +256,7 @@ def get_lead_activities(name): activity = { "activity_type": "communication", "communication_type": communication.communication_type, + "communication_date": communication.communication_date or communication.creation, "creation": communication.creation, "data": { "subject": communication.subject, diff --git a/frontend/src/components/Activities/EmailArea.vue b/frontend/src/components/Activities/EmailArea.vue index 61ee2f69..9fcf5e9c 100644 --- a/frontend/src/components/Activities/EmailArea.vue +++ b/frontend/src/components/Activities/EmailArea.vue @@ -22,9 +22,9 @@ variant="subtle" :theme="status.color" /> - +
- {{ __(timeAgo(activity.creation)) }} + {{ __(timeAgo(activity.communication_date)) }}