From 34a0c7d09e1a56bb2344e443cc50ed024dfaf60b Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 9 May 2023 17:05:08 +0800 Subject: [PATCH] * Optimize code after code reviewing. --- module/doc/model.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/module/doc/model.php b/module/doc/model.php index e627fc8987..703b12294a 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -211,8 +211,6 @@ class docModel extends model ->remove('uid,contactListMenu,libType') ->get(); - if(defined('IN_UPGRADE') and (($this->config->edition == 'open' and version_compare($this->config->version, '18.4.alpha1', '<')) or ($this->config->edition == 'biz' and version_compare($this->config->version, 'biz8.4.alpha1', '<')) or ($this->config->edition == 'max' and version_compare($this->config->version, 'max4.4.alpha1', '<')))) unset($lib->addedBy, $lib->addedDate); - if($lib->execution) $lib->type = 'execution'; if($lib->type == 'execution' and $lib->execution and !$lib->project) { @@ -255,8 +253,6 @@ class docModel extends model ->remove('uid,contactListMenu,libType') ->get(); - if(defined('IN_UPGRADE') and (($this->config->edition == 'open' and version_compare($this->config->version, '18.4.alpha1', '<')) or ($this->config->edition == 'biz' and version_compare($this->config->version, 'biz8.4.alpha1', '<')) or ($this->config->edition == 'max' and version_compare($this->config->version, 'max4.4.alpha1', '<')))) unset($data->addedBy, $data->addedDate); - $this->app->loadLang('api'); /* Replace doc library name. */