* adjust for api.

This commit is contained in:
王怡栋
2021-11-26 13:28:45 +08:00
parent 294317ccfe
commit d41d6cf262
3 changed files with 12 additions and 3 deletions
+2 -1
View File
@@ -1865,9 +1865,10 @@ EOD;
{
$queryObjects = $this->dao->query($sql);
$objectList = array();
$key = 'id';
while($object = $queryObjects->fetch())
{
$key = (!$this->session->$typeOnlyCondition and $type == 'testcase' and isset($object->case)) ? 'case' : 'id';
if(!$this->session->$typeOnlyCondition and $type == 'testcase' and isset($object->case)) $key = 'case';
$id = $object->$key;
$objectList[$id] = $id;
}