Group.GetGroupSubscriptions does not return groupIds
Problem:
The Formprocessor Action: Group.GetGroupSubscriptions does not seem to work as expected. I created an minimal Formprocessor that looks up if a contact is in a certain group 'digiAbo'. The group exists and the Contact is in the group. But It Formprocessor Action does not return the group_id as expected. But instead returns: []
Steps to reproduce
$result = civicrm_api3('FormProcessor', 'test', [
'contact_id' => 53684,
]);
Research in Code:
The problem seems to be here: https://lab.civicrm.org/extensions/action-provider/-/blame/master/Civi/ActionProvider/Action/Group/GetGroupSubscriptions.php#L34
$groupsToCheck = explode(",", $this->configuration->getParameter('group_ids'));
does return an empty array.
If i replace this with the following line things are working as expected:
$groupsToCheck = $this->configuration->getParameter('group_ids');
Question:
Did the return value of $this->configuration->getParameter(..)
change in the past?
Should I just create a Pull-Request with the given solution or do we need a solution that is backwards-compatible and can handle both kinds of return-values from getParameter()
?