automatically correct link type case fixes frappe/erpnext#1751