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

custom field creation API/BAO: support passing name

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 4.4.2
    • Fix Version/s: None
    • Component/s: CiviCRM API, Core CiviCRM
    • Labels:
      None

      Description

      if using the custom_field API to create custom fields, you cannot set the field name value. when passing that value to the params array, it is ignored and reconstructed using the label param.

      since the field name is a fixed value once the field is created, whereas the label may be altered via the UI, the ability to set and later reference the name is very useful to developers. we should alter the BAO to support passing the name param.

        Attachments

          Activity

            People

            • Assignee:
              lcdweb Brian Shaughnessy
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: