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) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Wrong link in mail with activity copy for assignee(s)
Pages: [1]

Author Topic: Wrong link in mail with activity copy for assignee(s)  (Read 1564 times)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Wrong link in mail with activity copy for assignee(s)
June 23, 2011, 06:33:13 am
If I add an activity to a Case, a confirmation email is sent to the assignee(s). Very useful, the project I am working on now use this to send workload to their colleagues. In the email that the colleague receives there are 2 links: a link with view activity and a link with edit activity. These links use the assignee as a client ID, so if I update the case activity with the link, I automatically move the whole case to the assignee!!

An example: I have added a case to contact 5254, and have added an activity to the case with assignee contact id 50. If I check my email copy of the activity I get this URL:
Quote
http://<mysite>/civicrm/case/activity?reset=1&cid=50&caseid=327&action=update&id=2356
this link now has 50 as the cid, so if I use the link the activity is opened in edit mode with client 50, and not with client 5254.

I want to check if this is on purpose and if others have the same issue before I report it as a bug and work on a fix?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Wrong link in mail with activity copy for assignee(s)
June 27, 2011, 04:15:01 am
Quote
I want to check if this is on purpose and if others have the same issue before I report it as a bug and work on a fix?
Yes, this seems to be bug. Client name / id seems to be incorrect in email. You can investigate and submit the patch.

Thanks,
Kurund
Found this reply helpful? Support CiviCRM

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Wrong link in mail with activity copy for assignee(s)
June 27, 2011, 04:32:50 am
Will do, more to follow :-)
Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Wrong link in mail with activity copy for assignee(s)
June 30, 2011, 04:15:34 am
I have added issue CRM-8400 (http://issues.civicrm.org/jira/browse/CRM-8400), problem also occurs in the standard Activity dashlet.
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Wrong link in mail with activity copy for assignee(s)
July 04, 2011, 04:05:03 am
A little more investigation.......in both Activity and Cases the function sendActivityCopy in CRM/Case/BAO/Case.php is used to send the email to the assignee(s). In this function the source_contact_id is used as the cid in the link and set to the user id. So if I add an activity to contact id 235 and assign it to my  colleague (contact id 445),  my colleague gets a mail with an edit link. If he follows the link, he sees my name on the top of the screen where he would expect contact 235 so he can see the telephone number by hovering over the symbol.
Anyone else familiar with this issue? I have an idea on how I want to fix it, but I want to make sure if this is a local customization for my current project or if this is something that should be fixed in core.
Erik
« Last Edit: July 04, 2011, 04:27:09 am by Erik Hommel »
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Wrong link in mail with activity copy for assignee(s)

This forum was archived on 2017-11-26.