* finish task #2003.

This commit is contained in:
wangyidong
2014-08-18 07:14:09 +00:00
parent f5c3728f53
commit ddc3fd28ea
11 changed files with 143 additions and 24 deletions
+4
View File
@@ -189,6 +189,10 @@ class docModel extends model
->remove('files, labels')
->get();
$condition = "lib = '$doc->lib' AND module = $doc->module";
$docID = $this->loadModel('common')->checkRepeat('doc', 'check', $doc->title, $condition);
if($docID) return array('status' => 'existed', 'id' => $docID);
$this->dao->insert(TABLE_DOC)
->data($doc)
->autoCheck()