* Finish bug#3491.

This commit is contained in:
hufangzhou
2020-09-28 13:07:46 +08:00
parent 68024e01f7
commit a1d6646276
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
<p>
<span class="text-muted"><?php echo $lang->project->noProject;?></span>
<?php if(common::hasPriv('project', 'create')):?>
<?php echo html::a($this->createLink('project', 'create'), "<i class='icon icon-plus'></i> " . $lang->project->create, '', "class='btn btn-info'");?>
<?php echo html::a($this->createLink('project', 'create', "projectID=&copyProjectID=&planID=&confirm=&productID=$productID"), "<i class='icon icon-plus'></i> " . $lang->project->create, '', "class='btn btn-info'");?>
<?php endif;?>
</p>
</div>
+2 -1
View File
@@ -1052,7 +1052,7 @@ class project extends control
* @access public
* @return void
*/
public function create($projectID = '', $copyProjectID = '', $planID = 0, $confirm = 'no')
public function create($projectID = '', $copyProjectID = '', $planID = 0, $confirm = 'no', $productID = '')
{
if($projectID)
{
@@ -1166,6 +1166,7 @@ class project extends control
$this->view->code = $code;
$this->view->team = $team;
$this->view->projectID = $projectID;
$this->view->productID = $productID;
$this->view->products = $products;
$this->view->productPlan = array(0 => '') + $productPlan;
$this->view->productPlans = array(0 => '') + $productPlans;
+1 -1
View File
@@ -109,7 +109,7 @@
<?php endforeach;?>
<div class='col-sm-4'>
<div class='input-group'>
<?php echo html::select("products[$i]", $allProducts, '', "class='form-control chosen' onchange='loadBranches(this)'");?>
<?php echo html::select("products[$i]", $allProducts, $productID, "class='form-control chosen' onchange='loadBranches(this)'");?>
<span class='input-group-addon fix-border'></span>
</div>
</div>