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

Updating "Yes or No" custom fields with API fails

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.7, 1.8
    • Fix Version/s: 1.8
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      The file civicrm/api/utils.php makes a call to CRM_Utils_String::strtobool when updating "Yes or No" custom fields but there is an error about the class not found.

      I fixed my own copy (v1.7.10272) by adding this at the top:

      require_once 'CRM/Utils/String.php';

      The same problem appears to exist in the 1.8 code also.

        Attachments

          Activity

            People

            • Assignee:
              shailesh Shailesh Lende
              Reporter:
              barrylb Barry
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: