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

DAO::createTestObject broken on former enum column

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5
    • Fix Version/s: 4.5
    • Component/s: Test suite
    • Labels:
      None
    • Sprint:
      Sprint 3

      Description

      Steps to reproduce: On master, run:

      ./scripts/phpunit --filter testByID_get api_v3_SyntaxConformanceTest

      The attached log shows that it attempts to set a value of "start_action_unit_4" for the field "start_action_unit". This is invalid on two counts: (a) at the SQL level, the string is too long to fit into the column and (b) at a higher-level, it's not a valid "start_action_unit". So it generates a hard error (attached).

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              timotten Tim Otten
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: