From 59aebd6685eb7e21ae7a142b9b822f503cea9fbd Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Tue, 11 May 2010 05:28:07 +0000 Subject: [PATCH] * fix the bug #87. --- module/task/model.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/module/task/model.php b/module/task/model.php index 3d8e72c03e..1bb011cf4e 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -95,7 +95,6 @@ class taskModel extends model ->leftJoin(TABLE_USER)->alias('t3') ->on('t1.owner = t3.account') ->where('t1.id')->eq((int)$taskID) - ->andWhere('t3.company')->eq($this->app->company->id) ->fetch(); if(!$task) return false; $task->files = $this->loadModel('file')->getByObject('task', $taskID); @@ -116,7 +115,6 @@ class taskModel extends model ->andWhere('t1.deleted')->eq(0) ->onCaseOf($status == 'needConfirm')->andWhere('t2.version > t1.storyVersion')->andWhere("t2.status = 'active'")->endCase() ->onCaseOf($status != 'all' and $status != 'needConfirm')->andWhere('t1.status')->in($status)->endCase() - ->andWhere('t3.company')->eq($this->app->company->id) ->orderBy($orderBy) ->page($pager) ->fetchAll(); @@ -135,7 +133,6 @@ class taskModel extends model ->where('t1.project')->eq((int)$projectID) ->andWhere('t1.deleted')->eq(0) ->onCaseOf($status != 'all')->andWhere('t1.status')->in($status)->endCase() - ->andWhere('t2.company')->eq($this->app->company->id) ->orderBy($orderBy) ->query(); while($task = $stmt->fetch()) $tasks[$task->id] = "$task->id:$task->ownerRealName:$task->name";