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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Bug: Custom Data Fields-Field Label Starts with Number (confirmed)
Pages: [1]

Author Topic: Bug: Custom Data Fields-Field Label Starts with Number (confirmed)  (Read 1510 times)

ansm

  • Guest
Bug: Custom Data Fields-Field Label Starts with Number (confirmed)
June 12, 2008, 07:43:46 am
Hi,
I'm at Home › CiviCRM › Administer CiviCRM › Custom Data
I've tested with Sandbox on June 12.
I add a field "1) What type of organization are you?"
I get an error message: Field's Name should not start with digit
This is a bug because a field label should be freely chosen.  It occurs because the internal field name is derived from the field label.  This is a quick and easy way of generating a related and unique field name, however the process should not restrict the label in any way.
Programmers: I suggest to strip illegal characters from the field name on generation.  Remember that you may be left with nothing left in the process.  Also note that to avoid field name collisions, you need to add something unique to the name.  Hope this can make it to 2.1.  Thanks.

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: Bug: Custom Data Fields-Field Label Starts with Number (confirmed)
June 12, 2008, 11:41:55 am
if this is crucial for you please consider submitting a patch that fixes it.

Please also submit a couple of unit tests to ensure that your patch fixes it and other cases

once you've got a patch, please submit an issue along with a patch. This will ensure it makes it into 2.1

lobo

« Last Edit: June 12, 2008, 12:05:14 pm by Donald 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

ansm

  • Guest
Re: Bug: Custom Data Fields-Field Label Starts with Number (confirmed)
June 13, 2008, 06:40:46 am
Hello,
I'd like to understand how the open source community works.  I had expected that a person reporting a bug, such as myself, could at least submit it somewhere for permanent record.  Then, if some volunteer programmer is up to it, they will fix the bug someday.  Even better, someone in the role of release manager will prioritize the bugs and request that volunteers address them in this priority.
One of the supposed benefits of opensource is that you can fix things yourself - however that's not really practical.  I'm employed to get a certain website working.  Once I leave, the website has to be maintainable by completely non-technical people.  I can't do any serious programming, the organization needs a solution that works now.
I happen to be a programmer in this case and could probably patch it myself, but it's not worth the time - in other words, I can see there being no motivation for anyone to ever fix these niggling little bugs forever.
Taking this back to the beginning - it's hardly worth my effort in documenting this bug.

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: Bug: Custom Data Fields-Field Label Starts with Number (confirmed)
June 13, 2008, 11:47:54 am

There are quite a few articles on how open source works / is supposed to work. You can start your readings here: http://en.wikipedia.org/wiki/Open_source

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 »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Bug: Custom Data Fields-Field Label Starts with Number (confirmed)

This forum was archived on 2017-11-26.