fixbug_24544

This commit is contained in:
sunjun
2022-06-29 09:16:29 +00:00
parent fcda045040
commit dda32cc5ff
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -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>