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

Unable to delete custom fields when logging is disabled

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.3.2
    • Fix Version/s: 3.3.3
    • Component/s: None
    • Labels:
      None

      Description

      When logging is inactive (cannot choose between yes/no) because the user defined in CIVICRM_UF_DSN does not have SUPER privilege, we were not able to delete new custom fields. Database errors reported were either related to triggers or unable to delete a non-existent column.

      To reproduce w/fresh 3.3.2 install:
      1. The user defined in CIVICRM_UF_DSN does not have SUPER privilege.
      2. Verify logging in Settings -> Misc is inactive (disabled) and set to no.
      3. Create a new custom group and field.
      4. Try to delete that custom field.

      Sorry, but we are not able to troubleshoot any further or provide a patch at the moment. The fix was to grant the user defined in CIVICRM_UF_DSN SUPER privileges. There seems to be a code distinction between a "No" setting in Logging vs. a disabled, forced "No" setting.

        Attachments

          Activity

            People

            • Assignee:
              shot Piotr Szotkowski
              Reporter:
              dharmatech Dharmatech
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: