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

civicrm_custom_field_create returns an incorrect error message the field "label" is missing from fieldParams.

    Details

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

      Description

      The function civicrm_custom_field_create (in api/v2/CustomGroup.php) returns a misleading error message when the required field "label" is missing from the fieldParams array.

      The returned error message says "Missing Required field :custom_group_id" but it should say "Missing Required field :label".

        Attachments

          Activity

            People

            • Assignee:
              amit Amiteshwar Prasad
              Reporter:
              dougall Dougall Winship
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 minute
                1m
                Remaining:
                Remaining Estimate - 1 minute
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified