fixbug_24544
This commit is contained in:
@@ -2168,7 +2168,7 @@ class testcase extends control
|
||||
*/
|
||||
public function importToLib($caseID = 0)
|
||||
{
|
||||
if(!empty($_POST))
|
||||
if($this->server->request_method == 'POST')
|
||||
{
|
||||
$this->testcase->importToLib($caseID);
|
||||
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
<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