Skip to content

Commit

Permalink
Add accepted_if validation to Bard enable_input_rules
Browse files Browse the repository at this point in the history
Closes #9554
  • Loading branch information
robdekort committed Feb 21, 2024
1 parent 1f31074 commit bd73939
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Fieldtypes/Bard.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ protected function configFieldItems(): array
'instructions' => __('statamic::fieldtypes.bard.config.enable_input_rules'),
'type' => 'toggle',
'default' => true,
'validate' => 'accepted_if:smart_typography,true',
],
'enable_paste_rules' => [
'display' => __('Enable Paste Rules'),
Expand Down

0 comments on commit bd73939

Please sign in to comment.