Merge pull request '* Fix bug #35106, browse testcase list order by id desc.' (#61) from sprint/zk_fixbug35106 into 18.4

Reviewed-on: https://git.zcorp.cc/easycorp/zentaopms/pulls/61
This commit is contained in:
孙广明
2023-05-17 15:01:01 +08:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3520,7 +3520,7 @@ class testcaseModel extends model
}
/* Sort by product ID for project list. */
$orderBy = 'product_desc,sort_asc';
$orderBy = 'product_desc,sort_desc';
/* Get sql for batch execution. */
if($executionSql !== null) $executionSql = $this->buildQuery($modules, $type, $objectIdList, $branch)->andWhere('isCase')->eq(1)->orderBy($orderBy)->get();
+1 -1
View File
@@ -483,7 +483,7 @@ function toOrder(sourceId,targetId)
}
var scenes = newOrders.join();
var orderBy = 'sort_asc';
var orderBy = 'sort_desc';
$.post(createLink('testcase', 'updateOrder'), {'scenes' : scenes, 'orderBy' : orderBy}, function(data){
window.location.reload();
});