mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 05:20:56 +01:00
Fix diff-of-diffs to respect the right-hand-side diff.
This commit is contained in:
parent
f9a59c9f49
commit
461f608b5c
1 changed files with 7 additions and 0 deletions
|
@ -44,7 +44,14 @@ class DifferentialRevisionViewController extends DifferentialController {
|
|||
}
|
||||
|
||||
$diff_vs = $request->getInt('vs');
|
||||
|
||||
$target = end($diffs);
|
||||
$target_id = $request->getInt('id');
|
||||
if ($target_id) {
|
||||
if (isset($diffs[$target_id])) {
|
||||
$target = $diffs[$target_id];
|
||||
}
|
||||
}
|
||||
|
||||
$diffs = mpull($diffs, null, 'getID');
|
||||
if (empty($diffs[$diff_vs])) {
|
||||
|
|
Loading…
Reference in a new issue