mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 23:01:04 +01:00
Fix reuse of $link in report controller
Summary: $link gets reused later in the function, use a different variable name to avoid broken nonsense. Test Plan: Clicked users/projects links. Reviewers: btrahan Reviewed By: btrahan CC: aran, epriestley Maniphest Tasks: T1038 Differential Revision: https://secure.phabricator.com/D2003
This commit is contained in:
parent
e722aa3f80
commit
b9931fa340
1 changed files with 3 additions and 3 deletions
|
@ -433,7 +433,7 @@ final class ManiphestReportController extends ManiphestController {
|
|||
'(Up For Grabs)');
|
||||
$col_header = 'User';
|
||||
$header = 'Open Tasks by User and Priority ('.$date.')';
|
||||
$link = '/maniphest/?users=';
|
||||
$base_link = '/maniphest/?users=';
|
||||
break;
|
||||
case 'project':
|
||||
$result = array();
|
||||
|
@ -470,7 +470,7 @@ final class ManiphestReportController extends ManiphestController {
|
|||
'(No Project)');
|
||||
$col_header = 'Project';
|
||||
$header = 'Open Tasks by Project and Priority ('.$date.')';
|
||||
$link = '/maniphest/view/all/?projects=';
|
||||
$base_link = '/maniphest/view/all/?projects=';
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -498,7 +498,7 @@ final class ManiphestReportController extends ManiphestController {
|
|||
$name = phutil_render_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => $link.$handle->getPHID(),
|
||||
'href' => $base_link.$handle->getPHID(),
|
||||
),
|
||||
phutil_escape_html($handle->getName()));
|
||||
$closed = idx($result_closed, $handle->getPHID(), array());
|
||||
|
|
Loading…
Reference in a new issue