Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 918
    • Issues 918
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Development
  • Core
  • Issues
  • #398

Closed
Open
Opened Sep 17, 2018 by Pradeep Nayak@pradeepDeveloper

Respect pre hook for relationship to alter id in $params

I don't want to create duplicate relationship and want to bypass the rule https://github.com/civicrm/civicrm-core/pull/6515 using an extension. I am using pre hook to send $params['id'] but CRM_Contact_BAO_Relationship::add() doesn't use $params['id'] after pre hook is invoked and leads to duplicate relationship.

PR(https://github.com/civicrm/civicrm-core/pull/12834) fixes the above problem and allows hook to send $params['id'].

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: dev/core#398