fixbug_24544

This commit is contained in:
sunjun
2022-06-29 08:55:08 +00:00
parent 815e95eb6c
commit fcda045040
2 changed files with 2 additions and 2 deletions
+1 -2
View File
@@ -2168,12 +2168,11 @@ class testcase extends control
*/
public function importToLib($caseID = 0)
{
$caseIDList = $this->post->caseIDList;
if(!empty($_POST))
{
$this->testcase->importToLib($caseID);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
if(!empty($caseID)) return $this->send(array('result' => 'success', 'message' => $this->lang->importSuccess, 'closeModal' => true,));
if(!empty($caseID)) return $this->send(array('result' => 'success', 'message' => $this->lang->importSuccess, 'closeModal' => true));
return $this->send(array('result' => 'success', 'message' => $this->lang->importSuccess, 'locate' => 'reload'));
}
$this->view->libraries = $this->loadModel('caselib')->getLibraries();
@@ -25,6 +25,7 @@
<td class='required'><?php echo html::select('lib', $libraries, '', "class='form-control chosen' id='lib' data-drop_direction='down'");?></td>
</tr>
<tr>
<?php echo html::hidden('case', '0');?>
<td colspan='2' class='text-center'><?php echo html::submitButton($lang->testcase->import);?></td>
</tr>
</form>