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

Settings validation fails due to incorrect $value

    Details

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

      Description

      On PHP 5.4, I observe a warning in this scenario:
      1. Go Administer => System Settings => Directories
      2. Save
      3. Observe: "Notice: Array to string conversion in CRM_Core_BAO_Setting::validateSetting() (line 448 of /Applications/MAMP/htdocs/sites/all/modules/civicrm/CRM/Core/BAO/Setting.php)."

      The problem is that $value does not contain the actual value – it contains the $fieldSpec. There seems to be some problems around validateSettingsInput (which is called by both setItems and getItems). This probably needs some cleanup/refactoring (or maybe disabling the validation for now).

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              timotten Tim Otten
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: