CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Dashlet Contact Name doesn't link to record
Pages: [1]

Author Topic: Dashlet Contact Name doesn't link to record  (Read 662 times)

simonium

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 2
Dashlet Contact Name doesn't link to record
January 24, 2012, 01:47:28 am
Hi there,

My client had a problem that I was able to fix with a small core hack, but I was wondering perhaps if anyone knew a better way to fix it.

Basically the names of contact's in the report Dashlet's on the user's home dashboard no longer linked to the contact's record.  this only happened after they upgraded to 3.4.8.

I fixed by adding a line of code to the file : sites/all/modules/civicrm/templates/CRM/Report/Form/Layout/Table.tpl

The line of code is :

{elseif $field eq 'civicrm_contact_sort_name'}
    <a href="index.php?q=civicrm/contact/view&reset=1&cid={$row.civicrm_contact_id}">{$row.$field}</a>

And it was added between line 125 and 126.


If anyone knows of a more elegant solution that doesn't need a core hack, that would be preferable, thanks in advance . . .

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Dashlet Contact Name doesn't link to record

This forum was archived on 2017-11-26.