diff --git a/app/admin/library/traits/Backend.php b/app/admin/library/traits/Backend.php index 4b25677a..492b61b2 100644 --- a/app/admin/library/traits/Backend.php +++ b/app/admin/library/traits/Backend.php @@ -134,6 +134,8 @@ trait Backend if (class_exists($validate)) { $validate = new $validate; if ($this->modelSceneValidate) $validate->scene('edit'); + $pk = $this->model->getPk(); + $data[$pk] = $row[$pk]; $validate->check($data); } }