fixbug_24544
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user