ZxcZxc123 2 years ago
parent
commit
f5b9c7f472
1 changed files with 1 additions and 1 deletions
  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,
             'sort' => $sort,
             'name' => $name,
             'name' => $name,
         ];
         ];
-        if ($this->allowField(true)->save($data, ['id' => $id])) {
+        if ($this->allowField(['sort', 'name'])->save($data, ['id' => $id])) {
             return true;
             return true;
         }
         }
         return false;
         return false;