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) »
  • Custom Fields Shared Across Multiple Subtypes - Limited To 64 Characters In DB??
Pages: [1]

Author Topic: Custom Fields Shared Across Multiple Subtypes - Limited To 64 Characters In DB??  (Read 650 times)

rjb

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 2
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
  • MySQL version: 5.1.44
  • PHP version: 5.3.1
Custom Fields Shared Across Multiple Subtypes - Limited To 64 Characters In DB??
March 10, 2011, 09:55:34 am
Hi, all.

I need to create a custom data group with custom fields for eight organization subtypes. However, even though I multiselect these 8 subtypes in the gui, only two of them are 'taking'. When I checked it out in phpmyadmin, I can see that these two are saved in civicrm_custom_group | extends_entity_column_value and a third is cut off after a few characters. The other five don't appear.

Is this because there's only room for 64 characters in the field?

Is there a workaround for this? It's really fairly critical for me. I guess my subtypes have fairly long names but I wouldn't have thought this should be a big problem.

Here's hoping...

RJB

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: Custom Fields Shared Across Multiple Subtypes - Limited To 64 Characters In DB??
March 10, 2011, 11:00:33 am

your current workaround is:

1. alter the column in the table to be 512 characters or so

2. just to be safe also fix the length of that field here: CRM/Core/DAO/CustomGroup.php

3. File an issue with a patch that:

a. Fixes the xml file and increases the length
b. make the change to the upgrade script to alter the table

thanx

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

rjb

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 2
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
  • MySQL version: 5.1.44
  • PHP version: 5.3.1
Re: Custom Fields Shared Across Multiple Subtypes - Limited To 64 Characters In DB??
March 11, 2011, 07:17:25 am
Thanks, Lobo.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Custom Fields Shared Across Multiple Subtypes - Limited To 64 Characters In DB??

This forum was archived on 2017-11-26.