Skip to content

Commit 02c4224

Browse files
committed
bug fixed: save value to data on filtered
1 parent bc06851 commit 02c4224

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ValidationTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ public function validate(array $onlyChecked = null, $stopOnError = null)
199199
// 字段值过滤
200200
if ($filters) {
201201
$value = $this->valueFiltering($value, $filters);
202+
$this->data[$field] = $value;
202203
}
203204
// 字段值验证检查
204205
if (!$this->valueValidate($data, $field, $value, $validator, $args)) {

0 commit comments

Comments
 (0)