-
-
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
Fix: Batch update participants with checkboxes fails #12051
Conversation
style warning will be ok when rebase is done |
@eileenmcnaughton It's a bit hard to see what code was changed because of the move to a separate function? Can you give us a clue. Also note that you may want to take a look at CRM_Core_Task_Batch which currently is only used for cases but should be easy to extend to other batch tasks when time is available. |
@mattwire also, noted on the idea of extending - in this case the slowest parts were replication & writing the unit test so I backed off doing other entities for now - but we could maybe use a data provider for the test which would resolve that |
@eileenmcnaughton Maybe add a comment that test etc could be extended in future to support multiple entities / core_task (so future people working on it are aware of the attempts to share code). |
@mattwire ok - good point - will tweak that when I rebase over the merged patch |
65b652d
to
8fcb7c8
Compare
8fcb7c8
to
3eb9931
Compare
Ouch - I accidentally pushed the commit that was for this one into #12048 before merging! So I merged by accident. I'm going to merge this too as it is just comments but @monishdeb any chance you can double check you are happy with the merged code now |
Overview
https://lab.civicrm.org/dev/core/issues/89
Fix error when trying to use batch update with custom checkboxes
Before
Does not submit
After
Does submit, unit tested
Technical Details
For readability I will rebase once #12048 is merged - the actual changes for this are quite minor
Comments
I suspect other batch updates may have a similar bug :-(