Skip to content

Commit

Permalink
[5.x] Change character_limit to integer on textarea (#10608)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Aug 12, 2024
1 parent 0d80b28 commit b681fd9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Fieldtypes/Textarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected function configFieldItems(): array
'character_limit' => [
'display' => __('Character Limit'),
'instructions' => __('statamic::fieldtypes.text.config.character_limit'),
'type' => 'text',
'type' => 'integer',
],
'default' => [
'display' => __('Default Value'),
Expand Down
2 changes: 1 addition & 1 deletion tests/Fields/BlueprintTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ public function converts_to_array_suitable_for_rendering_fields_in_publish_compo
'type' => 'textarea',
'placeholder' => null,
'validate' => 'min:2',
'character_limit' => null,
'character_limit' => 0,
'default' => null,
'antlers' => false,
'component' => 'textarea',
Expand Down
2 changes: 1 addition & 1 deletion tests/Fields/SectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function converts_to_array_suitable_for_rendering_fields_in_publish_compo
'type' => 'textarea',
'validate' => 'min:2',
'placeholder' => null,
'character_limit' => null,
'character_limit' => 0,
'default' => null,
'antlers' => false,
'component' => 'textarea',
Expand Down
2 changes: 1 addition & 1 deletion tests/Fields/TabTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function converts_to_array_suitable_for_rendering_fields_in_publish_compo
'type' => 'textarea',
'validate' => 'min:2',
'placeholder' => null,
'character_limit' => null,
'character_limit' => 0,
'default' => null,
'antlers' => false,
'component' => 'textarea',
Expand Down

0 comments on commit b681fd9

Please sign in to comment.