* Set default plan as empty select.
This commit is contained in:
@@ -915,7 +915,7 @@ class project extends control
|
||||
$whitelist = '';
|
||||
$acl = 'open';
|
||||
$plan = new stdClass();
|
||||
$productPlan = new stdClass();
|
||||
$productPlan = array();
|
||||
|
||||
if($copyProjectID)
|
||||
{
|
||||
@@ -969,7 +969,7 @@ class project extends control
|
||||
$this->view->code = $code;
|
||||
$this->view->team = $team;
|
||||
$this->view->products = $products;
|
||||
$this->view->productPlan = $productPlan;
|
||||
$this->view->productPlan = array(0 => '') + $productPlan;
|
||||
$this->view->whitelist = $whitelist;
|
||||
$this->view->copyProjectID = $copyProjectID;
|
||||
$this->view->branchGroups = $this->loadModel('branch')->getByProducts(array_keys($products));
|
||||
|
||||
@@ -121,7 +121,12 @@
|
||||
<?php echo html::select("plans[" . $plan->product . "]", $productPlan, $plan->id, "class='form-control'");?>
|
||||
<?php js::set('currentPlanID', $plan->id)?>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php else:?>
|
||||
<div class="col-sm-3" id="plan0">
|
||||
<?php echo html::select("plans[]", $productPlan, '', "class='form-control'");?>
|
||||
<?php js::set('currentPlanID', '')?>
|
||||
</div>
|
||||
<?php endif?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user