Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #3179 【5.1】エラーメッセージに100までの数値で入力するように指示があったが、実際には101まで入力できる #3180

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/bc-blog/src/Model/Table/BlogContentsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ public function validationDefault(Validator $validator): Validator

$validator->scalar('list_count')
->notEmptyString('list_count', __d('baser_core', '一覧表示件数を入力してください。'))
->range('list_count', [0, 101], __d('baser_core', '一覧表示件数は100までの数値で入力してください。'))
->range('list_count', [0, 100], __d('baser_core', '一覧表示件数は100までの数値で入力してください。'))
->add('list_count', 'halfText', [
'provider' => 'bc',
'rule' => 'halfText',
'message' => __d('baser_core', '一覧表示件数は半角で入力してください。')]);

$validator->scalar('feed_count')
->notEmptyString('feed_count', __d('baser_core', 'RSSフィード出力件数を入力してください。'))
->range('feed_count', [0, 101], __d('baser_core', 'RSSフィード出力件数は100までの数値で入力してください。'))
->range('feed_count', [0, 100], __d('baser_core', 'RSSフィード出力件数は100までの数値で入力してください。'))
->add('feed_count', 'halfText', [
'provider' => 'bc',
'rule' => 'halfText',
Expand Down
Loading