* Use isServing() instead of IN_USE.

This commit is contained in:
朱金勇
2023-07-10 05:56:05 +00:00
parent e9fd1379fe
commit ad288b3f1d
6 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ class control extends baseControl
if($this->config->edition == 'open') return false;
/* Code for task #9224. Set requiredFields for workflow. */
if($this->dbh and (defined('IN_USE') or (defined('RUN_MODE') and RUN_MODE == 'api')))
if($this->dbh && ($this->app->isServing() || (defined('RUN_MODE') and RUN_MODE == 'api')))
{
$this->extendExportFields();
$this->extendEditorFields();