ZxcZxc123 2 năm trước cách đây
mục cha
commit
f5b9c7f472
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/model/api/EducationModel.php

+ 1 - 1
app/model/api/EducationModel.php

@@ -145,7 +145,7 @@ class EducationModel extends Model
             'sort' => $sort,
             'name' => $name,
         ];
-        if ($this->allowField(true)->save($data, ['id' => $id])) {
+        if ($this->allowField(['sort', 'name'])->save($data, ['id' => $id])) {
             return true;
         }
         return false;