diff --git a/app/src/Model/Table/PersonRolesTable.php b/app/src/Model/Table/PersonRolesTable.php index 324b81f0f..4c13a57ac 100644 --- a/app/src/Model/Table/PersonRolesTable.php +++ b/app/src/Model/Table/PersonRolesTable.php @@ -162,6 +162,16 @@ public function initialize(array $config): void { 'cous' => [ 'type' => 'select', 'model' => 'Cous' + ], + // Required for peoplePicker + 'cosettings' => [ + 'type' => 'auxiliary', + 'model' => 'CoSettings' + ], + // Required for peoplePicker + 'types' => [ + 'type' => 'auxiliary', + 'model' => 'Types' ] ]); diff --git a/app/src/View/Helper/FieldHelper.php b/app/src/View/Helper/FieldHelper.php index 90d6c0de8..09db6fa1c 100644 --- a/app/src/View/Helper/FieldHelper.php +++ b/app/src/View/Helper/FieldHelper.php @@ -370,12 +370,13 @@ public function dateField(string $fieldName, * @param string $fieldName Form field * @param array|null $fieldOptions The second parameter of the Form->control helper. List of element options * @param string|null $fieldLabel Custom label text. Applicable to checkboxes ONLY - * @param string $fieldPrefix If the field has a specil prefix provide the value + * @param string $fieldPrefix If the field has a special prefix provide the value * @param string|null $fieldType Field type to override the one calculated from the schema * @param array|null $fieldSelectOptions Options array to override the one calculated options from the AutoPopulate property * fieldType has to be 'select' * @param string|null $fieldNameAlias Used for the Petition Attribute Collection form. The form uses generic field name. * The variable is used to map the generic field name to the actual enrollment attribute name + * @oaran bool|null $labelIsTextOnly A parameter to force rending a field name/label as plain text with no