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 Import (Moderator: Yashodha Chaku) »
  • Custom fields of activity partially not displayed
Pages: [1]

Author Topic: Custom fields of activity partially not displayed  (Read 1011 times)

mac

  • I post occasionally
  • **
  • Posts: 71
  • Karma: 0
Custom fields of activity partially not displayed
March 26, 2010, 02:44:22 pm
I have a custom activity "download" to which I have added custom fields, e.g. "downloaded version", "downloaded product".

When I look in the database at the data (activities) that I have imported, everything seems to look fine. But when I view the given activity through the CiviCRM interface, some of the custom fields do have a value ("downloaded version"), but for others ("downloaded product") no value is displayed. There doesn't seem to be a pattern in whether the field holds a text value, or a value based on a select list.

What might be going wrong?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom fields of activity partially not displayed
March 26, 2010, 04:22:43 pm
custom field data is not stored in the main record (e.g. not stored in civicrm_activity in your case), but rather in a civicrm_value_(your custom group name) table. I'd review the contents of that table via MySQL / phpMyAdmin and see if the data you're expecting is actually in the DB.
Protect your investment in CiviCRM by  becoming a Member!

mac

  • I post occasionally
  • **
  • Posts: 71
  • Karma: 0
Re: Custom fields of activity partially not displayed
March 26, 2010, 09:30:22 pm
That's what I meant by "activity data". Sorry for the misunderstanding.

The data is definitely in the db, but is not displayed. And the thing is that some of the custom attributes are displayed, and others are not.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom fields of activity partially not displayed
March 30, 2010, 10:35:06 am
Are some custom fields configured in a custom data group that is 'used for' a specific activity type rather than ALL activiites?
If you enter an activity with the custom data 'manually' (through the user interface form) rather than via import - does that change the results?

Bottom line is that I can't recall hearing about a problem like this before - so if the above questions don't trigger some actionable ideas - your options are to try and recreate this on the public demo (in which case you can file a bug report), or start adding some debugging statements into the code. You can jump on IRC to get some help w/ debugging if needed.

Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Custom fields of activity partially not displayed

This forum was archived on 2017-11-26.