1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-19 16:58:48 +02:00

Fix a PhutilURI issue in workboards

Ref PHI1082.
This commit is contained in:
epriestley 2019-02-19 09:01:10 -08:00
parent adab702403
commit 8cf6c68c95

View file

@ -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');
}