Skip to content

Commit

Permalink
Updated the data dictionary description field type to a textarea to h…
Browse files Browse the repository at this point in the history
…andle larger descriptions (#4231)
  • Loading branch information
kaise-lafrai authored Jul 19, 2024
1 parent 933e64c commit 12d4b73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private static function createActionFields() {
private static function createDescriptionField() {
return [
'#name' => 'field_json_metadata[0][dictionary_fields][field_collection][group][description]',
'#type' => 'textfield',
'#type' => 'textarea',
'#required' => TRUE,
'#title' => 'Description',
'#description' => t('Information about the field data.'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private static function createActionFields($key) {
private static function createDescriptionField($key, $current_fields) {
return [
'#name' => 'field_json_metadata[0][dictionary_fields][data][' . $key . '][field_collection][description]',
'#type' => 'textfield',
'#type' => 'textarea',
'#value' => $current_fields[$key]['description'],
'#required' => TRUE,
'#title' => 'Description',
Expand Down

0 comments on commit 12d4b73

Please sign in to comment.