* fix a bug #652.

This commit is contained in:
wangyidong
2014-11-27 06:46:49 +00:00
parent dca4f88056
commit d1aed6cc98
13 changed files with 38 additions and 31 deletions
+2 -2
View File
@@ -183,7 +183,7 @@ class docModel extends model
->add('addedBy', $this->app->user->account)
->add('addedDate', $now)
->setDefault('product, project, module', 0)
->skipSpecial($this->config->doc->editor->create['id'])
->stripTags($this->config->doc->editor->create['id'], $this->config->allowedTags)
->encodeURL('url')
->cleanInt('product, project, module')
->remove('files, labels')
@@ -225,7 +225,7 @@ class docModel extends model
->setIF($this->post->lib == 'product', 'project', 0)
->setIF(($this->post->lib != 'product' and $this->post->lib != 'project'), 'project', 0)
->setIF(($this->post->lib != 'product' and $this->post->lib != 'project'), 'product', 0)
->skipSpecial($this->config->doc->editor->edit['id'])
->stripTags($this->config->doc->editor->edit['id'], $this->config->allowedTags)
->encodeURL('url')
->add('editedBy', $this->app->user->account)
->add('editedDate', $now)