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

Minor: correct comment for _custom hook

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6
    • Fix Version/s: 4.6.1
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      The comments for the _custom hook say that it is called 'before' custom data is saved.

      It is actually called AFTER custom data is saved. This is true everywhere custom is called:
      \CRM\Core\BAO\CustomValue.php
      \CRM\Core\BAO\CustomValueTable.php

      The wiki documents this correctly.

      PR to follow.

      I have opened a wider discussion regarding the implementation of _custom here: http://forum.civicrm.org/index.php/topic,36329.0.html

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              john John K.
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: