CRM-15002: fix broken Link Case functionality
Merge pull request #3713 from yashodha/CRM-15002

CRM-15002: fix broken Link Case functionality