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

Attempting to Delete an Option Value Record Causes Fatal DB Error from UpdateRecords function

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      To recreate, to to Admin CiviCRM >> Gender Options and try to delete "Transgender". You'll get the following invalid query:

      SELECT *
      FROM

      WHERE ( .gender_id = 4 )

      ----------
      Pretty sure the problem is in Core/BAO/OptionValue.php, updateRecords. So once you fix please verify a few of the other option groups that are handled by this function.

        Attachments

          Activity

            People

            • Assignee:
              sunil Sunil Pawar
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: