When opening the Twingle API - Generic Settings page, an error message is displayed:
contact_type is an array, but only strings are allowed in $attributes.
The problem is the twingle_protect_recurring_activity_assignee selection field, which seems to pass an invalid array structure to $this->addEntityRef().
This issue may be related to #56.
When opening the Twingle API - Generic Settings page, an error message is displayed:
contact_type
is an array, but only strings are allowed in$attributes
.The problem is the
twingle_protect_recurring_activity_assignee
selection field, which seems to pass an invalid array structure to$this->addEntityRef()
.https://github.com/systopia/de.systopia.twingle/blob/1b684624016a72f251f6b621b94799f759b2485e/CRM/Twingle/Form/Settings.php#L92-L99
According to the documentation, the array passed to
$this->addEntityRef()
must be structured as follows:If the array is structured correctly, the problem is solved: