Skip to content

Commit

Permalink
テーマ設定の「リンク先URL」欄のルートパスやnullがエラーになる。 レビュー修正
Browse files Browse the repository at this point in the history
  • Loading branch information
IwasakiRyuichi committed Jan 31, 2025
1 parent 7e7be65 commit 0bd76b8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion plugins/baser-core/src/Model/Validation/BcValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ public static function checkWithJson($string, $key, $regex)
* @param $string
* @return bool
*/
public static function rootPath($value):bool
public static function rootPathCheck($value):bool
{

// 文字列チェック
Expand Down
24 changes: 12 additions & 12 deletions plugins/bc-theme-config/src/Model/Table/ThemeConfigsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ public function validationKeyValue(Validator $validator): Validator
]
]);
$validator->add('logo_link', [
'urlCheck' => [
'rule' => 'rootPath',
'linkUrl' => [
'rule' => 'rootPathCheck',
'provider' => 'bc',
'message' => __d('baser_core', '無効なURLです')
]
Expand All @@ -146,8 +146,8 @@ public function validationKeyValue(Validator $validator): Validator


$validator->add('main_image_link_1', [
'urlCheck' => [
'rule' => 'rootPath',
'linkUrl' => [
'rule' => 'rootPathCheck',
'provider' => 'bc',
'message' => __d('baser_core', '無効なURLです')
]
Expand All @@ -163,8 +163,8 @@ public function validationKeyValue(Validator $validator): Validator
]);

$validator->add('main_image_link_2', [
'urlCheck' => [
'rule' => 'rootPath',
'linkUrl' => [
'rule' => 'rootPathCheck',
'provider' => 'bc',
'message' => __d('baser_core', '無効なURLです')
]
Expand All @@ -180,8 +180,8 @@ public function validationKeyValue(Validator $validator): Validator
]);

$validator->add('main_image_link_3', [
'urlCheck' => [
'rule' => 'rootPath',
'linkUrl' => [
'rule' => 'rootPathCheck',
'provider' => 'bc',
'message' => __d('baser_core', '無効なURLです')
]
Expand All @@ -197,8 +197,8 @@ public function validationKeyValue(Validator $validator): Validator
]);

$validator->add('main_image_link_4', [
'urlCheck' => [
'rule' => 'rootPath',
'linkUrl' => [
'rule' => 'rootPathCheck',
'provider' => 'bc',
'message' => __d('baser_core', '無効なURLです')
]
Expand All @@ -214,8 +214,8 @@ public function validationKeyValue(Validator $validator): Validator
]);

$validator->add('main_image_link_5', [
'urlCheck' => [
'rule' => 'rootPath',
'linkUrl' => [
'rule' => 'rootPathCheck',
'provider' => 'bc',
'message' => __d('baser_core', '無効なURLです')
]
Expand Down

0 comments on commit 0bd76b8

Please sign in to comment.