[fix] linked with if there are multiple link field in the same doctype (#5587)
[fix] linked with if there are multiple link field in the same doctype (#5587)

* [fix] linked with if there are multiple link field in the same doctype

* handle python 3 and fixed as per reviews

StrellaGroup/frappe,ESS-LLP/frappe,neilLasrado/frappe,almeidapaulopt/frappe,ESS-LLP/frappe,RicardoJohann/frappe,chdecultot/frappe,saurabh6790/frappe,RicardoJohann/frappe,yashodhank/frappe,neilLasrado/frappe,neilLasrado/frappe,saurabh6790/frappe,saurabh6790/frappe,StrellaGroup/frappe,yashodhank/frappe,mhbu50/frappe,frappe/frappe,frappe/frappe,mhbu50/frappe,mhbu50/frappe,almeidapaulopt/frappe,adityahase/frappe,chdecultot/frappe,adityahase/frappe,yashodhank/frappe,vjFaLk/frappe,almeidapaulopt/frappe,adityahase/frappe,mhbu50/frappe,frappe/frappe,vjFaLk/frappe,chdecultot/frappe,saurabh6790/frappe,RicardoJohann/frappe,adityahase/frappe,neilLasrado/frappe,almeidapaulopt/frappe,RicardoJohann/frappe,vjFaLk/frappe,vjFaLk/frappe,StrellaGroup/frappe,yashodhank/frappe,ESS-LLP/frappe,chdecultot/frappe,ESS-LLP/frappe