Merge branch 'sprint/fixbug_hufangzhou_22016' into 'master'

* Fix bug #22016.

See merge request easycorp/zentaopms!3138
This commit is contained in:
朱金勇
2022-04-27 00:26:24 +00:00
+3 -3
View File
@@ -162,16 +162,16 @@ class apiModel extends model
*/
public function updateStruct($id)
{
$old = $this->dao->findByID($id)->from(TABLE_APISTRUCT)->fetch();
$now = helper::now();
$data = fixer::input('post')
->skipSpecial('attribute')
->add('lib', $struct->lib)
->add('lib', $old->lib)
->add('editedBy', $this->app->user->account)
->add('editedDate', $now)
->get();
$old = $this->dao->findByID($id)->from(TABLE_APISTRUCT)->fetch();
unset($data->addedBy);
unset($data->addedDate);