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:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user