Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • M Membership - archive
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Incidents
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Development
  • Membership - archive
  • Issues
  • #37

Closed (moved)
(moved)
Open
Created Jun 03, 2021 by jaapjansma@jaapjansmaDeveloper

Creating a relationship fails when a related membership has a contact reference custom field.

How to reproduce?

  1. Create a new membership type. Set Relationship type to Employer of
  2. Create a custom field set for this membership type
  3. Add a custom field of type Contact Reference
  4. Create a new organization
  5. Add the membership and fill in a value at the custom field
  6. Now add a Employer of relationship between this organization and an Individual, press save

Expected results

Relationship gets saved and a related membership is created with the correct value for the custom field

Actual results

No relationship is created, no error is shown, the civicrm logo stays on the screen turning around. Also when refreshing the page an error popups with something: custom_xx is not a valid integer

Extra information

When debuging this issue I disovered that a Membership.get api is used. And those values are passed to a Membership.create api call. The paramaters for the custom field have the format of custom_xx = 'Joe' and custom_xx_id = 202

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking