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) »
  • Resources not showing up
Pages: [1]

Author Topic: Resources not showing up  (Read 2076 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Resources not showing up
December 16, 2011, 12:05:27 pm
I have created a group called simply "Resources" and configured the CiviCase Settings.xml file to contain:

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<Settings>
<!-- List the group whose members should appear as contacts on all Manage Case screens.
Only one group name is supported for now.
It needs to match the name column in the civicrm_group table (not the title), so avoid using space characters. -->
<group name="Resources" />
<!-- Set this to 1 if you want case activity emails to be redacted -->
        <RedactActivityEmail>0</RedactActivityEmail>
<!-- Set this to 1 if you want to allow multiple clients to be associated with a single case -->
<AllowMultipleCaseClients>0</AllowMultipleCaseClients>
<!-- Set this to 1 if you want to have activity types on Manage Case
screen sorted in XML file order, default is alphabetical -->
<NaturalActivityTypeSort>0</NaturalActivityTypeSort>
<!-- Add activity types which should NOT be editable here with editable = 0 -->
<ActivityTypes>
<ActivityType>
        <name>Change Case Status</name>
<editable>0</editable>
        </ActivityType>
<ActivityType>
        <name>Change Case Start Date</name>
<editable>0</editable>
        </ActivityType>
</ActivityTypes>
</Settings>


This group shows up in a case, but doesn't list any contacts in the Resources group.  There are currently two individuals added to the Resources group.   I have truncated "civicrm_cache"

What could be the issue?  I am using 4.0.8.  Thanks!
Try CiviTeacher: the online video tutorial CiviCRM learning library.

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Resources not showing up
December 16, 2011, 02:26:16 pm
Seems to be broken on demo too. There should be one contact in there.

http://d7.demo.civicrm.org/civicrm/contact/view/case?reset=1&id=1&cid=90&action=view&context=dashboard&selectedChild=case

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Resources not showing up
December 16, 2011, 02:52:24 pm
Don't have a local install with me, but browsing the repo it looks like the code changed from previous versions where it used to use civicrm_contact_search and now uses
CRM_Contact_BAO_Query::apiQuery()

Are you able to put some debugging code in that function and see what it's doing wrong?

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Resources not showing up
December 16, 2011, 03:37:19 pm
Thanks for looking.


I can't debug right now, but I will file a bug, since you were able to replicate on the Demo site.

Here goes.
http://issues.civicrm.org/jira/browse/CRM-9365
« Last Edit: December 16, 2011, 03:39:13 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Resources not showing up
December 17, 2011, 10:18:51 am
I think just this line in CRM_Case_BAO_Case::getGlobalContacts() needs to change from
Code: [Select]
$return = array('sort_name', 'display_name', 'email', 'phone');to
Code: [Select]
$return = array('sort_name' => 1, 'display_name' => 1, 'email' => 1, 'phone' => 1);

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Resources not showing up
December 19, 2011, 01:38:38 pm
The issue has been fixed and will be applied to 4.1.  I hope to find a patch for this sooner.  I will try your approach.

Try CiviTeacher: the online video tutorial CiviCRM learning library.

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Resources not showing up
December 19, 2011, 06:53:20 pm
One of the reasons to use jira or issue trackers in general is if you click on the fisheye link at the bottom of the issue, then click on the diffs link, you can see the changes. At the top of that there'll be a View as Patch link at the top to get it in patch file format.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Resources not showing up
December 20, 2011, 09:12:12 am
 4 years of CiviCRM and I did not know about the Fisheye tab.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Resources not showing up

This forum was archived on 2017-11-26.