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

PriceFieldValue REST API does not match DB Schema

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.1
    • Fix Version/s: Unscheduled
    • Component/s: CiviCRM API
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      PriceFieldValue not correctly implemented in REST API

      The DB Schema is:

      Field

      --------------------

      id
      price_field_id
      name
      label
      description
      amount
      count
      max_value
      weight
      membership_type_id
      is_default
      is_active

      --------------------

      But, the fields available in the API are:

      "id":"1",
      "price_field_id":"1",
      "name":"contribution_amount",
      "label":"Contribution Amount",
      "amount":"1",
      "weight":"1",
      "is_default":"0",
      "is_active":"0"

      Actually, getfields returns:

      "is_error":0,
      "version":3,
      "count":0,
      "values":[],
      "xdebug":

      { "peakMemory":73323504, "memory":73142808, "timeIndex":6.5832941532135 }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jjjesus John Jesus
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: