Merge pull request #772 from frappe/mergify/bp/main-hotfix/pr-771
fix: contact page not loading (backport #771)
This commit is contained in:
commit
065a5ba07a
@ -30,15 +30,7 @@ def get_contact(name):
|
|||||||
|
|
||||||
if not len(contact):
|
if not len(contact):
|
||||||
frappe.throw(_("Contact not found"), frappe.DoesNotExistError)
|
frappe.throw(_("Contact not found"), frappe.DoesNotExistError)
|
||||||
contact = contact.pop()
|
|
||||||
|
|
||||||
contact["doctype"] = "Contact"
|
|
||||||
contact["email_ids"] = frappe.get_all(
|
|
||||||
"Contact Email", filters={"parent": name}, fields=["name", "email_id", "is_primary"]
|
|
||||||
)
|
|
||||||
contact["phone_nos"] = frappe.get_all(
|
|
||||||
"Contact Phone", filters={"parent": name}, fields=["name", "phone", "is_primary_mobile_no"]
|
|
||||||
)
|
|
||||||
return contact
|
return contact
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -168,7 +168,11 @@
|
|||||||
</template>
|
</template>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</div>
|
</div>
|
||||||
<ErrorPage v-else :errorTitle="errorTitle" :errorMessage="errorMessage" />
|
<ErrorPage
|
||||||
|
v-else-if="errorTitle"
|
||||||
|
:errorTitle="errorTitle"
|
||||||
|
:errorMessage="errorMessage"
|
||||||
|
/>
|
||||||
<AddressModal v-model="showAddressModal" v-model:address="_address" />
|
<AddressModal v-model="showAddressModal" v-model:address="_address" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@ -160,7 +160,11 @@
|
|||||||
</template>
|
</template>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</div>
|
</div>
|
||||||
<ErrorPage v-else :errorTitle="errorTitle" :errorMessage="errorMessage" />
|
<ErrorPage
|
||||||
|
v-else-if="errorTitle"
|
||||||
|
:errorTitle="errorTitle"
|
||||||
|
:errorMessage="errorMessage"
|
||||||
|
/>
|
||||||
<QuickEntryModal
|
<QuickEntryModal
|
||||||
v-if="showQuickEntryModal"
|
v-if="showQuickEntryModal"
|
||||||
v-model="showQuickEntryModal"
|
v-model="showQuickEntryModal"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user