* Finish bug#3491.
This commit is contained in:
@@ -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=©ProjectID=&planID=&confirm=&productID=$productID"), "<i class='icon icon-plus'></i> " . $lang->project->create, '', "class='btn btn-info'");?>
|
||||
<?php endif;?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user