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

hook_civicrm_post objectName sometimes sent lowercase

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5.5
    • Fix Version/s: 4.7
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      At least in the case of disabling a relationship, the $objectName in hook_civicrm_post is sent as "relationship" rather than "Relationship". I don't know if this is a consequence of deprecating hook_civicrm_enableDisable, but it's definitely a surprise. Ideally, it would be consistent everywhere, but otherwise, it'll need to be documented that the value could be capitalized or not.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              andrewhunt Andrew Hunt
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: