Skip to content

Commit

Permalink
fix baserproject#2951 メール基本設定で各項目にスペースが登録できてしまう
Browse files Browse the repository at this point in the history
  • Loading branch information
dovanhung committed Apr 16, 2024
1 parent e271c61 commit b396649
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion plugins/bc-mail/src/Model/Table/MailConfigsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,14 @@ public function validationKeyValue(Validator $validator): Validator
{
$validator
->scalar('site_name')
->notEmptyString('site_name', __d('baser_core', 'Webサイト名を入力してください。'));
->notEmptyString('site_name', __d('baser_core', 'Webサイト名を入力してください。'))
->add('site_name', [
'notBlankOnlyString' => [
'rule' => ['notBlankOnlyString'],
'provider' => 'bc',
'message' => __d('baser_core', 'ウィジェットエリア名を入力してください。')
]
]);
return $validator;
}

Expand Down

0 comments on commit b396649

Please sign in to comment.