mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Fix a PhutilURI issue in workboards
Ref PHI1082.
This commit is contained in:
parent
adab702403
commit
8cf6c68c95
1 changed files with 11 additions and 3 deletions
|
@ -1182,19 +1182,27 @@ final class PhabricatorProjectBoardViewController
|
|||
$project = $this->getProject();
|
||||
|
||||
if ($base === null) {
|
||||
$base = $this->getRequest()->getRequestURI();
|
||||
$base = $this->getRequest()->getPath();
|
||||
}
|
||||
|
||||
$base = new PhutilURI($base);
|
||||
|
||||
if ($force || ($this->sortKey != $this->getDefaultSort($project))) {
|
||||
$base->replaceQueryParam('order', $this->sortKey);
|
||||
if ($this->sortKey !== null) {
|
||||
$base->replaceQueryParam('order', $this->sortKey);
|
||||
} else {
|
||||
$base->removeQueryParam('order');
|
||||
}
|
||||
} else {
|
||||
$base->removeQueryParam('order');
|
||||
}
|
||||
|
||||
if ($force || ($this->queryKey != $this->getDefaultFilter($project))) {
|
||||
$base->replaceQueryParam('filter', $this->queryKey);
|
||||
if ($this->queryKey !== null) {
|
||||
$base->replaceQueryParam('filter', $this->queryKey);
|
||||
} else {
|
||||
$base->removeQueryParam('filter');
|
||||
}
|
||||
} else {
|
||||
$base->removeQueryParam('filter');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue