diff --git a/module/ci/control.php b/module/ci/control.php index 88358edef3..d06c715240 100644 --- a/module/ci/control.php +++ b/module/ci/control.php @@ -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'))); diff --git a/module/job/view/edit.html.php b/module/job/view/edit.html.php index a54f03e1fb..b318c8d3fa 100644 --- a/module/job/view/edit.html.php +++ b/module/job/view/edit.html.php @@ -34,7 +34,7 @@ job->engine;?> - job->engineList, $job->engine, "class='form-control chosen'");?> + job->engineList, $job->engine, '') . html::hidden('engine', $job->engine);?>