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 Drupal Modules (Moderator: Donald Lobo) »
  • n/a instead of emtpy?
Pages: [1]

Author Topic: n/a instead of emtpy?  (Read 1017 times)

qjensen

  • I post frequently
  • ***
  • Posts: 141
  • Karma: 11
    • Scaled Solutions
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
n/a instead of emtpy?
March 14, 2011, 02:21:45 pm
I am working on a view with CiviCRM contacts and the custom field I am using in this view is showing n/a instead of empty when rendered. I looked at the views code and it doesn't seem to be coming from the field handler.

Is this something that happens when the information is requested from CiviCRM? Does anyone think it would be a good idea to change this so an actual empty field is returned? With the way things sit now, you can hide the field if it is empty because it never really is empty.
Quint Jensen
Web Developer
Scaled Solutions
--" Remove the 'I want you to like me' notes from your forehead and place them where they truly will do the most good -- on your mirror!" Author Unknown

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: n/a instead of emtpy?
March 14, 2011, 04:02:24 pm
Hi - i take it the last line should say 'can't' not 'can'

have hit the same problem - but it was a field that client agreed should have had data in so we avoided finding a fix.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

qjensen

  • I post frequently
  • ***
  • Posts: 141
  • Karma: 11
    • Scaled Solutions
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: n/a instead of emtpy?
March 15, 2011, 04:05:07 am
I tracked down the issue to civicrm_handler_field_markup.inc. The check_value call returns n/a if the value passed is empty. I submitted a patch (http://issues.civicrm.org/jira/browse/CRM-7780) that checks that return value and returns null if the value is n/a.
Quint Jensen
Web Developer
Scaled Solutions
--" Remove the 'I want you to like me' notes from your forehead and place them where they truly will do the most good -- on your mirror!" Author Unknown

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: n/a instead of emtpy?
July 05, 2011, 12:09:25 pm
excellent patch for a weird issue thanks
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • n/a instead of emtpy?

This forum was archived on 2017-11-26.