* fix for edit job.

This commit is contained in:
wangyidong
2021-08-05 13:57:57 +08:00
parent 54d8c561c2
commit cfda81bede
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -123,6 +123,7 @@ class ci extends control
$caseResult = $post->funcResult;
$firstCase = array_shift($caseResult);
$productID = $firstCase->productId;
if(empty($productID) and !empty($firstCase->id)) $productID = $this->dao->select('product')->from(TABLE_CASE)->where('id')->eq((int)$firstCase->id)->fetch('product');
}
if(empty($productID)) die(json_encode(array('result' => 'fail', 'message' => 'productID is not found')));
+1 -1
View File
@@ -34,7 +34,7 @@
</tr>
<tr>
<th><?php echo $lang->job->engine;?></th>
<td class='required'><?php echo html::select('engine', $lang->job->engineList, $job->engine, "class='form-control chosen'");?>
<td class='required'><?php echo zget($lang->job->engineList, $job->engine, '') . html::hidden('engine', $job->engine);?>
</td>
</tr>
<tr>