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

Can't enable / disable logging feature

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: None
    • Labels:
      None

      Description

      In CRM/Admin/Form/Setting/Miscellaneous.php file the condition: "if ($config->logging != $values['logging']) " is always failing, because config initialization updates config->logging before comparison could happen.

      Reason: in CRM/Admin/Form/Setting.php postprocess v4.3 uses CRM_Core_BAO_ConfigSetting::create() against CRM_Core_BAO_ConfigSetting::add() in v4.2, done as part of CRM-10040.

      Solution: config should be initialized before exportValues() in CRM/Admin/Form/Setting/Miscellaneous.php postprocess.

        Attachments

          Activity

            People

            • Assignee:
              deepak Deepak Srivastava
              Reporter:
              deepak Deepak Srivastava
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: