Skip to content

Commit

Permalink
fix #1692【フォーム】フィールド設定にて、「表示サイズ」に数値以外を入力するとシステムエラーになる件の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kaburk committed Jun 30, 2021
1 parent 229fd92 commit 94fbe16
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions lib/Baser/Plugin/Mail/Model/MailField.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,39 @@ public function __construct($id = false, $table = null, $ds = null)
'message' => __d('baser', 'オプションは255文字以内で入力してください。')
]
],
'size' => [
[
'rule' => ['naturalNumber'],
'message' => __d('baser', '表示サイズは半角数字のみで入力してください。'),
'allowEmpty' => true,
],
[
'rule' => ['maxLength', 9],
'message' => __d('baser', '表示サイズは9文字以内で入力してください。')
]
],
'rows' => [
[
'rule' => ['naturalNumber'],
'message' => __d('baser', '行数は半角数字のみで入力してください。'),
'allowEmpty' => true,
],
[
'rule' => ['maxLength', 9],
'message' => __d('baser', '行数は9文字以内で入力してください。')
]
],
'maxlength' => [
[
'rule' => ['naturalNumber'],
'message' => __d('baser', '最大値は半角数字のみで入力してください。'),
'allowEmpty' => true,
],
[
'rule' => ['maxLength', 9],
'message' => __d('baser', '最大値は9文字以内で入力してください。')
]
],
'class' => [
[
'rule' => ['maxLength', 255],
Expand Down

0 comments on commit 94fbe16

Please sign in to comment.