From a2355212adc008e7348eee8324351d57d95779f3 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 8 Dec 2021 17:08:10 +0800 Subject: [PATCH] * Fix bug #17272. --- module/project/control.php | 2 +- module/project/view/browsebycard.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/project/control.php b/module/project/control.php index 569d89868f..777d341383 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -456,7 +456,7 @@ class project extends control $this->view->gobackLink = (isset($output['from']) and $output['from'] == 'global') ? $this->createLink('project', 'browse') : ''; $this->view->pmUsers = $this->loadModel('user')->getPairs('noclosed|nodeleted|pmfirst'); $this->view->users = $this->user->getPairs('noclosed|nodeleted'); - $this->view->copyProjects = $this->project->getPairsByModel(); + $this->view->copyProjects = $this->project->getPairsByModel($model); $this->view->products = $products; $this->view->allProducts = array('0' => '') + $this->program->getProductPairs($programID, 'assign', 'noclosed'); $this->view->productPlans = array('0' => '') + $productPlans; diff --git a/module/project/view/browsebycard.html.php b/module/project/view/browsebycard.html.php index 72d31a431f..a71c16e9ec 100644 --- a/module/project/view/browsebycard.html.php +++ b/module/project/view/browsebycard.html.php @@ -72,7 +72,7 @@  ", '', "class='btn btn-icon text-primary' title='{$lang->project->bycard}' id='switchButton' data-type='bycard'");?> " . $lang->export, '', "class='btn btn-link export'")?> - config->maxVersion) and !defined('TUTORIAL')):?> + ' . $lang->project->create, '', 'class="btn btn-primary create-project-btn" data-toggle="modal" data-target="#guideDialog"');?> ' . $lang->project->create, '', 'class="btn btn-primary create-project-btn"');?>