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) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Custom Value API only returns active custom fields?
Pages: [1]

Author Topic: Custom Value API only returns active custom fields?  (Read 763 times)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Custom Value API only returns active custom fields?
September 05, 2012, 09:06:53 am
I am using the v3 API CustomValue, which is great! (Thanks Coleman :-) I have one issue though: as far as I can judge I can not retrieve data for inactive custom fields? That is a shame as I use that feature quite often to hold 'invisible' data likes keys from other systems I link too. I can work around it, but it seems useful to me to have the possibility to retrieve inactive custom values. If we agree, I will raise an issue and add it to the sprint list :-)
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Custom Value API only returns active custom fields?
September 05, 2012, 01:48:16 pm
Yes, lets set aside 2 hours to debate the syntax & 20 minutes to implement the fix @ the sprint
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Custom Value API only returns active custom fields?
September 06, 2012, 07:03:08 am
Awesome, if you can fix it in 20 mins I am happy with whatever syntax :-)
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

jaapjansma

  • I post frequently
  • ***
  • Posts: 247
  • Karma: 9
    • CiviCoop
  • CiviCRM version: 4.4.2
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5.4
Re: Custom Value API only returns active custom fields?
April 23, 2013, 05:23:40 am
Are the inactive custom values already fixed? It doesn't seem so in my version of CiviCRM which 4.3.0?
Developer at Edeveloper / CiviCoop

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Custom Value API only returns active custom fields?
April 23, 2013, 05:54:07 am
No Jaap, I do not think they are fixed yet. Soooooo in the ideal world......you can fix it and share the improved API with us?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

jaapjansma

  • I post frequently
  • ***
  • Posts: 247
  • Karma: 9
    • CiviCoop
  • CiviCRM version: 4.4.2
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5.4
Re: Custom Value API only returns active custom fields?
April 23, 2013, 06:42:31 am
Well. I would like to do so. But I am new to CiviCRM so I am not sure if my solution is not going to have impact on Civi in general. Because I have found the cause for this specific problem in a core BAO class. Which then might lead to unwanted results like showing up inactive custop fields in different screen.

So a little advice on how to change BAO functionality would be welcome.
Developer at Edeveloper / CiviCoop

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Custom Value API only returns active custom fields?
April 23, 2013, 06:45:46 am
Want to have a chat about this tomorrow?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

jaapjansma

  • I post frequently
  • ***
  • Posts: 247
  • Karma: 9
    • CiviCoop
  • CiviCRM version: 4.4.2
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5.4
Re: Custom Value API only returns active custom fields?
April 23, 2013, 06:46:40 am
Yep lets do that
Developer at Edeveloper / CiviCoop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Custom Value API only returns active custom fields?

This forum was archived on 2017-11-26.