[Ref] [php8] Unshare shared function CRM_Custom_Form_CustomData::setGroupTree
in order to clean-up
#26829
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Unshare shared function
CRM_Custom_Form_CustomData::setGroupTree
in order to clean-upBefore
CRM_Custom_Form_CustomData::setGroupTree
is shared for the purposes of re-using the CustomData form code in other forms - but it expects all sorts of variables to be passed via form properties that are relevant to the original class rather than the forms - so a tonne of work is done to re-use itAfter
The 2 places that use it have their own copies (one copied inline into the calling function). It is deprecated
Technical Details
Towards fixing https://test.civicrm.org/job/CiviCRM-Core-Edge/CIVIVER=master,label=bknix-tmp-edge/2843/testReport/junit/(root)/CRM_Contact_Form_Task_AddToGroupTest/testAddToGroup/
Comments
I created an issue on gdpr veda-consulting-company/uk.co.vedaconsulting.gdpr#330