* Fix bug #37285.
This commit is contained in:
@@ -1130,7 +1130,7 @@ class repo extends control
|
||||
$linkedStories = $this->repo->getRelationByCommit($repoID, $revision, 'story');
|
||||
if($browseType == 'bySearch')
|
||||
{
|
||||
$allStories = $this->story->getBySearch($product->id, 0, $queryID, 'id', '', 'story', array_keys($linkedStories), $pager);
|
||||
$allStories = $this->story->getBySearch($product->id, 0, $queryID, $orderBy, '', 'story', array_keys($linkedStories), $pager);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1217,7 +1217,7 @@ class repo extends control
|
||||
$linkedBugs = $this->repo->getRelationByCommit($repoID, $revision, 'bug');
|
||||
if($browseType == 'bySearch')
|
||||
{
|
||||
$allBugs = $this->bug->getBySearch($product->id, 0, $queryID, 'id_desc', array_keys($linkedBugs), $pager);
|
||||
$allBugs = $this->bug->getBySearch($product->id, 0, $queryID, $orderBy, array_keys($linkedBugs), $pager);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ window.createSortLink = function(col)
|
||||
var sort = col.name + '_asc';
|
||||
if(sort == orderBy) sort = col.name + '_desc';
|
||||
|
||||
return sortLink.replace('{orderBy}', sort);
|
||||
return "javascript:loadModal('" + sortLink.replace('{orderBy}', sort) + "', '#table-repo-linkbug')";
|
||||
}
|
||||
|
||||
$(document).off('click','.dtable-footer .batch-btn').on('click', '.dtable-footer .batch-btn', function(e)
|
||||
|
||||
@@ -3,7 +3,7 @@ window.createSortLink = function(col)
|
||||
var sort = col.name + '_asc';
|
||||
if(sort == orderBy) sort = col.name + '_desc';
|
||||
|
||||
return sortLink.replace('{orderBy}', sort);
|
||||
return "javascript:loadModal('" + sortLink.replace('{orderBy}', sort) + "', '#table-repo-linkstory')";
|
||||
}
|
||||
|
||||
$(document).off('click','.dtable-footer .batch-btn').on('click', '.dtable-footer .batch-btn', function(e)
|
||||
@@ -20,4 +20,11 @@ $(document).off('click','.dtable-footer .batch-btn').on('click', '.dtable-footer
|
||||
url: $(this).data('url'),
|
||||
data: postData
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
$('#table-repo-linkstory').on('click', 'a', function(e)
|
||||
{
|
||||
console.log(1111, e);
|
||||
e.preventDefault();
|
||||
return;
|
||||
})
|
||||
@@ -3,7 +3,7 @@ window.createSortLink = function(col)
|
||||
var sort = col.name + '_asc';
|
||||
if(sort == orderBy) sort = col.name + '_desc';
|
||||
|
||||
return sortLink.replace('{orderBy}', sort);
|
||||
return "javascript:loadModal('" + sortLink.replace('{orderBy}', sort) + "', '#table-repo-linktask')";
|
||||
}
|
||||
|
||||
$(document).off('click','.dtable-footer .batch-btn').on('click', '.dtable-footer .batch-btn', function(e)
|
||||
|
||||
Reference in New Issue
Block a user