-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Afform - Support repeatable relationships #25175
Conversation
@colemanw - any reason why we can't get this merged? Are you waiting on some testing or feedback? Would be great to get it out the door soon. |
@michaelmcandrew it's just the usual bottleneck. I've made the PR but no one has reviewed it, but IMO it's ready to merge. |
I applied it to a couple of test sites but found it a bit confusing. I don't know if it's working as expected or if these are the case without this patch but I found:
|
Here is a sample form with |
Relationship data is not saved using above form. I tried moving relationship type in the form too. Same issue. Am I missing something? |
@kurund based on the above screenshot you are trying to create a relationship between two individuals of type "team member is" - that sounds like a relationship type that's meant to go between an individual and an organization? |
17812ab
to
c1c9503
Compare
I have created a new relationship type between Individual and Individual Form is not saved and getting below error in the console. Not that if I switch to |
Looks like this branch has conflicts. Let me know once it's resolved and when above issues are fixed. |
c1c9503
to
6cdcdc2
Compare
Overview
Supports creating multiple relationships at once using the "Repeatable" feature in the relationship fields.
See https://chat.civicrm.org/civicrm/pl/r3nw5p4z9jyg9gx61dndp99ipe
Before
Relationship blocks could be repeated, but only the first one would save
After
All repeated relationships save.
1. Create form, add relationship fieldset and make it repeatable
2. When filling out form, click the "Add" button to add multiple relations
3. Relationships have been created