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

Updating the length of a custom field does not result in the log table field length being updated

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.4
    • Fix Version/s: 4.6.5
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      If a custom field is 3 char long & it gets changed to 10 char long the civicrm_value_xx table is alted to accomodated this - but not log_civicrm_value_xx table - which means saves of the longer value can result in a fatal error & transaction rollback.

      The code for coping with table changes explicitly says is only responds on add & not change - I'm unsure why & in testing this usecase it worked fine. The comment predates git & it may be that the reason has been resolved since the comment was written

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: