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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.2 Release Testing »
  • case activity - send a copy
Pages: [1]

Author Topic: case activity - send a copy  (Read 1431 times)

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
case activity - send a copy
July 17, 2010, 10:49:52 pm
when editing a case activity, expand the "send a copy" panel --
there is an empty row

this is because the array element for the client's record is a subset array -- it's one level deeper than the rest of the relationship records, and so the necessary values are not passed to the template.

see: CRM/Case/Form/Activity.php
around 294

$this->_relatedContacts needs to be fixed so that all elements are structured the same.

i've added the following after $checkboxes = array();

Code: [Select]
foreach ( $this->_relatedContacts as $id => $row ) {
if ( count($row) > 1 ) {
$flattened[$id] = $row;
} else { //recurse the next level
foreach ( $row as $key => $value ) {
$flattened[$id] = $value;
}
}
}
$this->_relatedContacts = $flattened;

it's not great, but it gets the job done.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

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: case activity - send a copy
July 19, 2010, 02:44:06 am
please file an issue for this.

Thanks
Kurund
Found this reply helpful? Support CiviCRM

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: case activity - send a copy
July 19, 2010, 06:27:02 am
http://issues.civicrm.org/jira/browse/CRM-6505
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.2 Release Testing »
  • case activity - send a copy

This forum was archived on 2017-11-26.