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) »
  • Case Activity Bug
Pages: [1]

Author Topic: Case Activity Bug  (Read 1409 times)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Case Activity Bug
October 12, 2010, 07:28:59 am
In a Drupal-based CiviCRM 3.2.3 site I installed this patch https://fisheye2.atlassian.com/changelog/CiviCRM?cs=29602  when I upgraded to 3.2.3, although I don't think this patch is related to the below.

Now when visiting a Case page, the Activities Ajax call returns an error. I traced this back to CRM/Activity/Page/AJAX.php and it appears that the problem is

Code: [Select]
$userID    = CRM_Utils_Type::escape( $_GET['userID'], 'Integer' );
in static function getCaseActivity( ) The URL used for the Ajax has no userID defined. I edited that file and used

Code: [Select]
$session = CRM_Core_Session::singleton( );
instead to get the userID and at least it returns results now, as opposed to an error. I'm not certain if this is the intended solution however.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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: Case Activity Bug
October 12, 2010, 06:32:25 pm
The patch probably isn't related.

Do you allow anonymous access to cases? I personally have never looked at that scenario.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Case Activity Bug
October 13, 2010, 03:11:05 am
Quote from: demeritcowboy on October 12, 2010, 06:32:25 pm
Do you allow anonymous access to cases?

No.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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: Case Activity Bug
October 13, 2010, 06:18:35 am
Are you saying the url parameter is missing completely or that the value is blank?
If you view source on the manage case screen does the javascript have userID=<something> ?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Case Activity Bug
October 13, 2010, 06:19:29 am
missing completely
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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: Case Activity Bug
October 13, 2010, 06:48:45 am
Hmm. Sounds like you have an older CaseView.tpl somehow.
Try deleting the template cache? Or re-installing.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Case Activity Bug
October 19, 2010, 09:16:33 am
Quote from: demeritcowboy on October 13, 2010, 06:48:45 am
Try deleting the template cache?

That did it.

Thank you.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Case Activity Bug

This forum was archived on 2017-11-26.