Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15048

Civi Export does not use max field length field for Custom Fields varchar

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.6
    • Fix Version/s: 4.4.12, 4.5
    • Component/s: Core CiviCRM
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      When a user goes to export a custom field from advanced search and using select fields for export. CiviCRM sets the field length for string field types to Varchar(255) even tho there may be a longer db length set in the custom field setting in civicrm_custom_field.text_length

      As a partial fix the organisation I'm with I have set the relevant setting which is line 1325 of Export.php in CRM/Export/BAO/ to a higher db length which has solved the problem but I think it would be better if we were using the text_length field.

        Attachments

          Activity

            People

            • Assignee:
              colemanw Coleman Watts
              Reporter:
              seamuslee Seamus Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: