From: Jeff Kellem Date: Thu, 30 Nov 2023 09:04:10 +0000 (-0800) Subject: reference correct note_columns field name in database X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=405a948c543864e58ac1357dc190ba0039dc13c7;p=civicrm-core.git reference correct note_columns field name in database - civicrm_custom_field table has `note_rows` and `note_columns`, *not* `note_cols` - Q: Should `cols` also be changed to `columns` on this line? --- diff --git a/Civi/Api4/Service/Spec/SpecFormatter.php b/Civi/Api4/Service/Spec/SpecFormatter.php index 73bcd7a6cf..b1b66b3c73 100644 --- a/Civi/Api4/Service/Spec/SpecFormatter.php +++ b/Civi/Api4/Service/Spec/SpecFormatter.php @@ -320,7 +320,7 @@ class SpecFormatter { $inputAttrs['maxlength'] = (int) $data['maxlength']; } if ($inputType == 'TextArea') { - foreach (['rows', 'cols', 'note_rows', 'note_cols'] as $prop) { + foreach (['rows', 'cols', 'note_rows', 'note_columns'] as $prop) { if (!empty($data[$prop])) { $inputAttrs[str_replace('note_', '', $prop)] = (int) $data[$prop]; }