brotherton-erpnext/erpnext/crm/doctype
Ashish Shah c0817838d9
fix: when lead is created with mobile_no, mobile_no value gets lost (#26298)
Summary: When a Lead is created with mobile_no, mobile_no value gets lost (mobile_no value is overwritten by phone value)
It is backport of https://github.com/frappe/erpnext/pull/26116

Steps to reproduce
[1]Create a Lead.
[2]Enter 
Person Name(lead_name): before_fix
Under Contact section, 
enter Phone(phone): 11 and 
Mobile No.(mobile_no):22
[3]Save it
[4] F12, 
cur_frm.doc.phone : 11 (correct)
cur_frm.doc.mobile_no : 11 (incorrect, it should be 22)
[5]Under Address & Contact section ,check contact_html it shows
before_fix
Phone: 11 (Primary label is missing)
Phone: 22 (incorrect, it should be Mobile No:22, also Primary label is missing)


Actual:
mobile_no value is lost. it is overwritten by phone value
following is image with error (before fix)
![image](https://user-images.githubusercontent.com/29812965/122664017-54b2e880-d1bc-11eb-8e4c-767a23ed7eb7.png)


Expected:
mobile_no value should be retained
following is image after fix
![image](https://user-images.githubusercontent.com/29812965/122664037-64323180-d1bc-11eb-8f6f-7628cdaa7adc.png)
2021-07-02 15:16:42 +05:30
..
appointment fix: Added permission for employee to book appointment (#26255) 2021-07-02 12:32:22 +05:30
appointment_booking_settings fix: Translatable strings (#23783) 2020-11-25 09:11:51 +05:30
appointment_booking_slots Rename doctype Appointment Booking Slots 2019-11-19 10:59:24 +05:30
availability_of_slots Added doctype 2019-09-10 15:10:51 +05:30
campaign_email_schedule feat: Email Campaign 2019-07-12 13:56:36 +05:30
contract style: fix formatting 2021-02-01 19:50:27 +05:30
contract_fulfilment_checklist Add Contract-related doctypes to ERPNext 2018-06-04 15:56:38 +05:30
contract_template fix: py code clean up and doc help 2020-12-07 10:45:13 +05:30
contract_template_fulfilment_terms Add Contract-related doctypes to ERPNext 2018-06-04 15:56:38 +05:30
email_campaign feat(CRM): Email Group Option In Email Campaign (#22731) 2020-07-23 19:07:11 +05:30
lead fix: when lead is created with mobile_no, mobile_no value gets lost (#26298) 2021-07-02 15:16:42 +05:30
lead_source fix: Lead Source's module (#24583) 2021-04-09 18:15:51 +05:30
linkedin_settings chore: frappe.whitelist for doc methods (#25068) 2021-03-31 12:30:32 +05:30
lost_reason_detail fix(Codacy): Deleted unused imports and files 2019-01-02 13:24:12 +05:30
market_segment Lead to customer UX enhancement (#15525) 2018-10-02 11:25:00 +05:30
opportunity fix: invalid 'depends_on' expression in opportunity (#25955) 2021-06-04 11:16:38 +05:30
opportunity_item feat: Set lost reasons in opportunity and quotation using table multiselect 2018-12-29 19:33:44 +05:30
opportunity_lost_reason fix(Codacy): Deleted unused imports and files 2019-01-02 13:24:12 +05:30
opportunity_lost_reason_detail fix: Quotation lost reason options fix (#22814) 2020-08-13 09:20:36 +05:30
opportunity_type [enhance] Add Issue Type and Opportunity Type masters (#11598) 2017-11-16 17:03:52 +05:30
sales_stage enable Allow Rename in sales stage (#21799) 2020-05-20 16:15:48 +05:30
social_media_post fix: Social Media Status hidden in Mobie View (#23158) 2020-08-26 10:32:26 +05:30
twitter_settings chore: frappe.whitelist for doc methods (#25068) 2021-03-31 12:30:32 +05:30
__init__.py [new-module] crm 2015-02-17 10:36:54 +05:30
utils.py fix: Lead not getting linked to call logs (#24593) 2021-02-11 13:23:51 +05:30