* finish task #4696.

This commit is contained in:
wangyidong
2018-09-17 09:17:47 +08:00
parent a0dc618974
commit 2f5a511644
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -6,4 +6,4 @@ CREATE TABLE `zt_userview` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
ALTER TABLE `zt_entry` ADD `account` VARCHAR(30) NOT NULL DEFAULT '' AFTER `code`;
UPDATE `zt_doc` set editedDate=addedDate, editedBy=addedBy where editedBy = '';
+2
View File
@@ -603,6 +603,8 @@ class docModel extends model
$doc = fixer::input('post')
->add('addedBy', $this->app->user->account)
->add('addedDate', $now)
->add('editedBy', $this->app->user->account)
->add('editedDate', $now)
->add('version', 1)
->setDefault('product,project,module', 0)
->stripTags($this->config->doc->editor->create['id'], $this->config->allowedTags)