Merge branch 'sprint/fixbug_hufangzhou_22016' into 'master'
* Fix bug #22016. See merge request easycorp/zentaopms!3138
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user