From dfecfa9d5cdedb738d956c17620708729c39db20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=94=E5=93=A5?= Date: Tue, 29 May 2018 09:57:17 +0800 Subject: [PATCH] * Finish task#4240. --- module/doc/control.php | 2 -- module/doc/model.php | 8 -------- 2 files changed, 10 deletions(-) diff --git a/module/doc/control.php b/module/doc/control.php index 8c640b4873..237498eb20 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -155,8 +155,6 @@ class doc extends control $this->session->set('searchDoc', ''); } - if($browseType == 'collectedbyme') $this->view->doclibs = $this->doc->getLibs('collectedbyme'); - $this->view->title = $title; $this->view->libID = $libID; $this->view->moduleID = $moduleID; diff --git a/module/doc/model.php b/module/doc/model.php index 178ebe6d1a..2b7597944a 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -206,14 +206,6 @@ class docModel extends model { $stmt = $this->dao->select('*')->from(TABLE_DOCLIB)->where('deleted')->eq(0)->orderBy('`order`, id desc')->query(); } - elseif($type == 'collectedbyme') - { - $stmt = $this->dao->select('*')->from(TABLE_DOCLIB) - ->where('deleted')->eq(0) - ->andWhere('collector')->like("%,{$this->app->user->account},%") - ->orderBy('`order`, id desc') - ->query(); - } else { $stmt = $this->dao->select('*')->from(TABLE_DOCLIB)->where('deleted')->eq(0)->andWhere('product')->eq('0')->andWhere('project')->eq(0)->orderBy('`order`, id desc')->query();