mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
Use consistent tag order in Maniphest list views and workboard cards
Summary: Fixes T11420. These are selected in newest-to-oldest order from the database, but we should show them in oldest-to-newest order in the UI. Test Plan: Tagged a couple tasks with "A, B, C" projects, saw correct order in UI: {F1749351} {F1749352} Reviewers: chad Reviewed By: chad Maniphest Tasks: T11420 Differential Revision: https://secure.phabricator.com/D16367
This commit is contained in:
parent
4d68c0ae04
commit
8f4a63d708
2 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,7 @@ final class ManiphestTaskListView extends ManiphestView {
|
|||
|
||||
$project_handles = array_select_keys(
|
||||
$handles,
|
||||
$task->getProjectPHIDs());
|
||||
array_reverse($task->getProjectPHIDs()));
|
||||
|
||||
$item->addAttribute(
|
||||
id(new PHUIHandleTagListView())
|
||||
|
|
|
@ -128,6 +128,7 @@ final class ProjectBoardTaskCard extends Phobject {
|
|||
}
|
||||
|
||||
if ($project_handles) {
|
||||
$project_handles = array_reverse($project_handles);
|
||||
$tag_list = id(new PHUIHandleTagListView())
|
||||
->setSlim(true)
|
||||
->setHandles($project_handles);
|
||||
|
|
Loading…
Reference in a new issue