* Finish task #73241.
This commit is contained in:
@@ -64,6 +64,9 @@ class executionModel extends model
|
||||
public function setMenu($executionID, $buildID = 0, $extra = '')
|
||||
{
|
||||
$execution = $this->getByID($executionID);
|
||||
|
||||
if($execution->type == 'stage') unset($this->lang->execution->menu->settings['subMenu']->products);
|
||||
|
||||
if($execution and $execution->type == 'kanban')
|
||||
{
|
||||
global $lang;
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
<tr>
|
||||
<th><?php echo $lang->execution->manageProducts;?></th>
|
||||
<td class='text-left' id='productsBox' colspan="2">
|
||||
<?php $class = $execution->grade == 2 ? "readonly='readonly'" : '';?>
|
||||
<?php $class = ($execution->grade == 2 or $execution->type == 'stage') ? "disabled" : '';?>
|
||||
<div class='row'>
|
||||
<?php $i = 0;?>
|
||||
<?php foreach($linkedProducts as $product):?>
|
||||
@@ -165,12 +165,14 @@
|
||||
?>
|
||||
<?php endforeach;?>
|
||||
<?php endforeach;?>
|
||||
<?php if($execution->type != 'stage'):?>
|
||||
<div class='col-sm-4'>
|
||||
<div class="input-group">
|
||||
<?php echo html::select("products[$i]", $allProducts, '', "class='form-control chosen' onchange='loadBranches(this)'");?>
|
||||
<span class='input-group-addon fix-border'></span>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user