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

showing log changes fails with custom data field that is not assigned to an option group

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.5, 4.0.5
    • Fix Version/s: 4.1.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Steps to reproduce:

      • create a alphanumeric custom data field and you do not use a select or radio list (just plain text field)
      • enable logging
      • change a record, including the custom data field you created
      • view change log

      You get:

      Sorry. A non-recoverable error has occurred.
      One of parameters (value: ) is not of the type Integer

      Return to home page.

      The problem seems to be that the logging code assumes that there's an option group id. I'm working on a commit that tests for this condition.

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              jamie Jamie McClelland
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: