From 4b21f31e5cf7d78276f1aa449ab05458adabc736 Mon Sep 17 00:00:00 2001 From: lanzongjun Date: Tue, 16 Aug 2022 11:22:57 +0800 Subject: [PATCH] * fix bug #26462 --- module/project/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/project/control.php b/module/project/control.php index 1c013a7889..0a4618896f 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -143,14 +143,14 @@ class project extends control public function ajaxGetCopyProjects() { $data = fixer::input('post')->get(); - $projectParis = $this->dao->select('id, name')->from(TABLE_PROJECT) + $projectPairs = $this->dao->select('id, name')->from(TABLE_PROJECT) ->where('type')->eq('project') ->andWhere('deleted')->eq(0) ->andWhere('vision')->eq($this->config->vision) ->beginIF(!$this->app->user->admin)->andWhere('id')->in($this->app->user->view->projects)->fi() ->beginIF(trim($data->name))->andWhere('name')->like("%$data->name%")->fi() ->fetchPairs(); - $projects = $this->project->getPairsByModel('undifined', 0, '', array_keys($projectParis)); + $projects = $this->project->getPairsByModel('undifined', 0, '', array_keys($projectPairs)); $html = empty($projects) ? "
{$this->lang->noData}
" : ''; foreach($projects as $id => $name) {