Merge pull request #565 from frappe/develop

This commit is contained in:
Shariq Ansari 2025-02-03 13:41:02 +05:30 committed by GitHub
commit 5672cd9b1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,9 +85,9 @@ async function createContact() {
delete _contact.value.email_id delete _contact.value.email_id
} }
if (_contact.value.actual_mobile_no) { if (_contact.value.mobile_no) {
_contact.value.phone_nos = [{ phone: _contact.value.actual_mobile_no }] _contact.value.phone_nos = [{ phone: _contact.value.mobile_no }]
delete _contact.value.actual_mobile_no delete _contact.value.mobile_no
} }
const doc = await call('frappe.client.insert', { const doc = await call('frappe.client.insert', {