From f18cde5955957d2cb6de8c54f97e678676ee5b7c Mon Sep 17 00:00:00 2001 From: tianshujie Date: Sun, 23 Apr 2023 10:58:23 +0800 Subject: [PATCH] * Fix bug #34601. --- module/doc/model.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/doc/model.php b/module/doc/model.php index 9bd29b9b56..1d4b0a1f66 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -211,6 +211,8 @@ 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) { @@ -253,6 +255,8 @@ 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); + $this->app->loadLang('api'); /* Replace doc library name. */