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

hook_civicrm_custom does not receive id of newly created record on create which is problematic for multiple valued groups

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.7.8
    • Fix Version/s: None
    • Component/s: CiviCRM API
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      Developer Doc
    • Funding Source:
      Needs Funding

      Description

      hook_civicrm_custom does not receive id of newly created record when the operation is "create" which is problematic for multiple valued groups.

      This issue is noted on StackExchange here: http://civicrm.stackexchange.com/questions/2389/how-to-get-the-new-record-id-when-adding-a-record-to-a-multi-value-custom-field

      I have attached a patch with a simple fix attempt.

        Attachments

          Activity

            People

            • Assignee:
              lola_slade Lola Slade
              Reporter:
              lola_slade Lola Slade
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: