Fix 'Undefined variable: jsSet in CRM_Core_BAO_Mapping::loadSavedMapping()' #17816
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
When editing smart group criteria built with 'Search builder':
Notice: Undefined variable: jsSet in CRM_Core_BAO_Mapping::loadSavedMapping() (line 952 of /var/aegir/platforms/alumni-staging/sites/alumni.staging.drupal.uis.cam.ac.uk/modules/contrib/civicrm/CRM/Core/BAO/Mapping.php).
Source: 5c322e1 (Ping @eileenmcnaughton
The variable forms part of the array that is returned, but it is not declared in some instances:
civicrm-core/CRM/Core/BAO/Mapping.php
Line 952 in 64aa560
Before
jsSet might not be defined.
After
jsSet is always defined.