* fix error and adjust build code.

This commit is contained in:
wangyidong
2015-11-13 11:12:41 +08:00
parent d12d84f950
commit e703770075
3 changed files with 10 additions and 3 deletions
+7 -1
View File
@@ -28,7 +28,13 @@
<td class='w-p25-f'>
<div class='input-group'>
<?php echo html::select('product', $products, $build->product, "onchange='loadBranches(this.value);' class='form-control chosen'");?>
<?php if($build->productType != 'normal') echo html::select('branch', $branches, $build->branch, "class='form-control' style='width:100px'");?>
<?php
if($build->productType != 'normal')
{
if($product->branch) $branches = array($product->branch => $branches[$product->branch]);
echo html::select('branch', $branches, $build->branch, "class='form-control' style='width:100px'");
}
?>
</div>
</td><td></td>
</tr>