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

Edit custom option value stops because of extraneous debug call, with solution

    Details

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

      Description

      It looks like between 4.0 and 4.1 an extraneous debug line crept into /CRM/Core/BAO/CustomOption.php.

      The result is that after editing a custom value and pressing 'save' the print_r of the updated field is displayed but then page loading stops and the user is never redirected back to the custom field option list.

      This is around line 235 of CustomOption.php:

      require_once 'CRM/Utils/Rule.php';
      $params['value'] = CRM_Utils_Rule::cleanMoney($params['value']);
      }
      >>> CRM_Core_Error::debug($params); <<<
      switch ($dao->htmlType) {

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              bhugh Brent Hugh
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: