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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Encounter Medium "Weirdness"
Pages: [1]

Author Topic: Encounter Medium "Weirdness"  (Read 527 times)

PrincessAng417

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 2
  • CiviCRM version: 4.5.4
  • CMS version: Drupal 7.34
Encounter Medium "Weirdness"
December 19, 2014, 01:16:42 pm
Using Civi 4.5.4:

I'm not sure if I should post this under Using Core CiviCRM Functions, or Using CiviCase... the issue is that an Activity is not the same under each section.

If I enter an Activity, say a Meeting, as an Activity that is *not* on a Case, I am not given the opportunity to enter an Encounter Medium.

Conversely, if I enter the same Activity (Meeting) under a Case, I am *required* to enter an Encounter Medium.

The choices for Encounter Medium are set under the "Manage CiviCase" Admin screen, but the Activities all appear to be stored in the same DB table.  So shouldn't these things be consistent?  It's proving difficult to train users when the data entry screens are not the same, depending on where they click from.

The follow-up issues are that (1) the Encounter Medium is not searchable in the Advanced Search, and (2) it is only exportable when viewing as Cases, not as Activities.



Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Encounter Medium "Weirdness"
December 19, 2014, 02:54:38 pm
Not sure how to resolve this until we've implemented our new form-builder mechanism slated for 5.0. At that point, the goal is that it's easy for each site to customized built-in forms (layout and form elements). I'm not aware of any other requests to expose encounter medium to non-case activities - so I'm not inclined to add another element to that form unless there was an easy way to choose whether it is included.

I don't think it would be too difficult to add it for your install with a simple extension - which I think is your best bet for now.
Protect your investment in CiviCRM by  becoming a Member!

PrincessAng417

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 2
  • CiviCRM version: 4.5.4
  • CMS version: Drupal 7.34
Re: Encounter Medium "Weirdness"
December 22, 2014, 08:59:22 am
The other approach would be to make it not required (or even make the field go away altogether) for the Case-related Activities.  In many use cases, we would prefer not to use it at all, but the field is *required*.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Encounter Medium "Weirdness"
December 22, 2014, 10:01:33 am
Changing this line (around 186) in CRM/Case/Form/Activity/OpenCase.php

From:
    $form->addSelect('medium_id', array('entity' => 'activity'), TRUE);

To:
    $form->addSelect('medium_id', array('entity' => 'activity'), FALSE);

... will make the field NOT required. You can also change the default 'medium' to something like '(not applicable)' from Administer > CiviCase > Encounter Medium.
Protect your investment in CiviCRM by  becoming a Member!

PrincessAng417

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 2
  • CiviCRM version: 4.5.4
  • CMS version: Drupal 7.34
Re: Encounter Medium "Weirdness"
January 29, 2015, 12:28:51 am
Thanks-- I'm going to give this a go.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Encounter Medium "Weirdness"

This forum was archived on 2017-11-26.