mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
Fix an issue with 1up diff block rendering for added or removed blocks
Summary: Ref T13425. When a change adds or removes a block (vs adding or removing a document, or changing a block), we currently try to render `null` as cell content in the unified view. Make this check broader to catch both "no opposite document" and "no opposite cell". Test Plan: {F7008772} Subscribers: artms Maniphest Tasks: T13425 Differential Revision: https://secure.phabricator.com/D20897
This commit is contained in:
parent
502ca4767e
commit
d4491ddc22
1 changed files with 2 additions and 2 deletions
|
@ -371,7 +371,7 @@ final class DifferentialChangesetOneUpRenderer
|
||||||
$cell_classes = $block_diff->getNewClasses();
|
$cell_classes = $block_diff->getNewClasses();
|
||||||
}
|
}
|
||||||
} else if ($row_type === 'old') {
|
} else if ($row_type === 'old') {
|
||||||
if (!$old_ref) {
|
if (!$old_ref || !$old) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -384,7 +384,7 @@ final class DifferentialChangesetOneUpRenderer
|
||||||
|
|
||||||
$new_key = null;
|
$new_key = null;
|
||||||
} else if ($row_type === 'new') {
|
} else if ($row_type === 'new') {
|
||||||
if (!$new_ref) {
|
if (!$new_ref || !$new) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue