Skip to content
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

dev/core#2125 Ensure that the id that is used in the field is the gro… #18776

Merged
merged 1 commit into from
Oct 15, 2020

Conversation

seamuslee001
Copy link
Contributor

…up id not the id of array key as that has changed from being a keyed array to a 2D array

Overview

This fixes an issue where by the group id is no longer used as part of the field name and as such can cause DB errors when submitting the form

Before

Possible DB errors because group id my not exist

After

No DB Errors

Technical Details

It would seem as tho in 78d0090#diff-c113d6099b62e0ddbf3876a74fbf756f7743590dd27397dec4ebf9b24dfca578R1126 the hierarchy array changed from being keyed on the group id to just a sequential array which meant that $id in this no longer matched up to the group id from civicrm_group table

https://lab.civicrm.org/dev/core/-/issues/2125

ping @eileenmcnaughton

…up id not the id of array key as that has changed from being a keyed array to a 2D array
@civibot
Copy link

civibot bot commented Oct 15, 2020

(Standard links)

@civibot civibot bot added the 5.31 label Oct 15, 2020
@eileenmcnaughton
Copy link
Contributor

OK - is @monishdeb able to check this as he worked on this

@monishdeb
Copy link
Member

monishdeb commented Oct 15, 2020

On quick look, its definitely what's needed here. Unfortunately during a thorough review #13958 didn't catch this miss of fetching id from the code. Also on the 2nd round of the fixes in another PR.

Tested on my local and looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants