mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Fix Change link in Diffusion history
Summary: And maybe also something else. And hopefully don't break anything. Test Plan: /diffusion/X/history/..., click on //Modified//. Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1996
This commit is contained in:
parent
315870d56a
commit
1eca595e4d
1 changed files with 6 additions and 1 deletions
|
@ -279,12 +279,17 @@ abstract class DiffusionRequest {
|
|||
$default_commit = $this->getStableCommitName();
|
||||
}
|
||||
|
||||
$params += array(
|
||||
$defaults = array(
|
||||
'callsign' => $this->getCallsign(),
|
||||
'path' => $this->getPath(),
|
||||
'branch' => $this->getBranch(),
|
||||
'commit' => $default_commit,
|
||||
);
|
||||
foreach ($defaults as $key => $val) {
|
||||
if (!isset($params[$key])) { // Overwrite NULL.
|
||||
$params[$key] = $val;
|
||||
}
|
||||
}
|
||||
return self::generateDiffusionURI($params);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue