From 6505c67bf9fceb8c249fb533d727637b8a9f183a Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Tue, 1 Dec 2020 09:39:46 +0800 Subject: [PATCH] * PRJ not write to the database when create doc. --- module/doc/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/doc/model.php b/module/doc/model.php index a522bbe770..a10ff26996 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -621,6 +621,7 @@ class docModel extends model ->add('editedDate', $now) ->add('version', 1) ->setDefault('product,project,module', 0) + ->setDefault('PRJ', $this->session->PRJ) ->stripTags($this->config->doc->editor->create['id'], $this->config->allowedTags) ->cleanInt('product,project,module,lib') ->join('groups', ',')