diff --git a/module/doc/model.php b/module/doc/model.php index 4c11a0d929..dea4f20e09 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -3851,7 +3851,6 @@ class docModel extends model $this->dao->update($table)->set('deleted')->eq('1')->where('id')->eq($id)->exec(); - $doc = $this->getByID($id); $this->loadModel('action')->create('doc', $id, 'deleted', '', ACTIONMODEL::CAN_UNDELETED); return !dao::isError();