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 Profiles (Moderator: Dave Greenberg) »
  • View Profile uses labels rather than field id...
Pages: [1]

Author Topic: View Profile uses labels rather than field id...  (Read 935 times)

andrewbelcher

  • Guest
View Profile uses labels rather than field id...
September 09, 2009, 05:26:05 am
Hi,

Am I doing something wrong or has there been an oversight in the design? In the View mode of a profile, if you've got two fields in the profile with the same label, it loses them. I was trying to template a view profile, and looking at the row variable, the array it label => value, so presumably the next time it gets to that label, it overwrites the existing entry.

Is there a way around this?

Thanks,
Andrew

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: View Profile uses labels rather than field id...
September 09, 2009, 05:39:13 am

i would call it an oversight in design :) That format is quite bad, IMO. I would prefer to change it to, something like:

custom_XXX => array( 'label' => foo, 'value' => bar );

I suspect we'll change this in a future version

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

andrewbelcher

  • Guest
Re: View Profile uses labels rather than field id...
September 09, 2009, 05:42:04 am
Yeah, I thought it might have been an oversight - easy to do until you need the extra flexibility and realise the oversight!

Do you know if it's a simple fix that I could make myself (I know php, but I'm no pro with civiCRM's architechure) or am I best waiting for it to be released?

Ta
Andrew

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • View Profile uses labels rather than field id...

This forum was archived on 2017-11-26.