Skip to content

Commit

Permalink
Merge pull request #243 from frappe/develop
Browse files Browse the repository at this point in the history
chore: Merge develop to main
  • Loading branch information
shariquerik authored Jul 4, 2024
2 parents 064106e + 741141a commit 6d74d33
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/CommunicationArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ async function sendMail() {
doctype: props.doctype,
name: doc.value.data.name,
send_email: 1,
sender: getUser().name,
sender: getUser().email,
sender_full_name: getUser()?.full_name || undefined,
})
}
Expand All @@ -207,7 +207,7 @@ async function sendComment() {
reference_doctype: props.doctype,
reference_name: doc.value.data.name,
content: newComment.value,
comment_email: getUser().name,
comment_email: getUser().email,
comment_by: getUser()?.full_name || undefined,
})
if (comment && attachments.value.length) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Modals/DealModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function openQuickEntryModal() {
onMounted(() => {
Object.assign(deal, props.defaults)
if (!deal.deal_owner) {
deal.deal_owner = getUser().email
deal.deal_owner = getUser().name
}
})
</script>
2 changes: 1 addition & 1 deletion frontend/src/components/Modals/LeadModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function openQuickEntryModal() {
onMounted(() => {
Object.assign(lead, props.defaults)
if (!lead.lead_owner) {
lead.lead_owner = getUser().email
lead.lead_owner = getUser().name
}
})
</script>
2 changes: 1 addition & 1 deletion frontend/src/components/Modals/TaskModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function redirect() {
async function updateTask() {
if (!_task.value.assigned_to) {
_task.value.assigned_to = getUser().email
_task.value.assigned_to = getUser().name
}
if (_task.value.name) {
let d = await call('frappe.client.set_value', {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/stores/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export const usersStore = defineStore('crm-users', () => {
auto: true,
transform(users) {
for (let user of users) {
usersByName[user.name] = user
if (user.name === 'Administrator') {
user.email = 'Administrator'
usersByName[user.email] = user
}
usersByName[user.name] = user
}
return users
},
Expand Down

0 comments on commit 6d74d33

Please sign in to comment.