From de2b4328010b5c246da73b484ac2448404e094ae Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 14 Feb 2021 19:50:24 -0500 Subject: [PATCH] APIv4 - Add option lists to getFields html_type and data_type --- Civi/Api4/Generic/BasicGetFieldsAction.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Civi/Api4/Generic/BasicGetFieldsAction.php b/Civi/Api4/Generic/BasicGetFieldsAction.php index 5f5d25ef3d..7f4faf7ae9 100644 --- a/Civi/Api4/Generic/BasicGetFieldsAction.php +++ b/Civi/Api4/Generic/BasicGetFieldsAction.php @@ -254,10 +254,30 @@ class BasicGetFieldsAction extends BasicGetAction { [ 'name' => 'data_type', 'data_type' => 'String', + 'options' => [ + 'Integer' => ts('Integer'), + 'Boolean' => ts('Boolean'), + 'String' => ts('String'), + 'Text' => ts('Text'), + 'Date' => ts('Date'), + 'Timestamp' => ts('Timestamp'), + 'Array' => ts('Array'), + ], ], [ 'name' => 'input_type', 'data_type' => 'String', + 'options' => [ + 'Text' => ts('Text'), + 'Number' => ts('Number'), + 'Select' => ts('Select'), + 'CheckBox' => ts('CheckBox'), + 'Radio' => ts('Radio'), + 'Date' => ts('Date'), + 'File' => ts('File'), + 'EntityRef' => ts('EntityRef'), + 'ChainSelect' => ts('ChainSelect'), + ], ], [ 'name' => 'input_attrs', -- 2.25.1