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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Update from 2.1 to 2.2 and problem with custom search on activity
Pages: [1]

Author Topic: Update from 2.1 to 2.2 and problem with custom search on activity  (Read 975 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Update from 2.1 to 2.2 and problem with custom search on activity
June 29, 2009, 01:51:10 am
Hi,

The custom search by activity works fine on a new 2.2, however on another install, it doesn't find any activity:

- if you custom search without criterias, works fine
- as soon as you put one (on the activity type of the status),  it doesn't return any result.

Any suggestion why ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Actually, something different
June 29, 2009, 02:16:52 am
On a fresh install, it seems that the option_group id of activity type is 1 (hard coded in the custom activity search), but that on the upgraded version, the proper option_group is 1.

Any idea why ?

Anyway, what's better ? patch the custom activity search so it takes the group from the config instead of hardcode or update so group 1 is activity  type ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Update from 2.1 to 2.2 and problem with custom search on activity
June 29, 2009, 04:49:08 pm

hardcoding the option group id is a bad idea, so can you please patch the code so that it gets the option group id from the option group table using the name field (activity_type)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Update from 2.1 to 2.2 and problem with custom search on activity

This forum was archived on 2017-11-26.