mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 08:42:41 +01:00
Fix missing inline comments issue
Summary: some inline comments are missing in the revision page. The reason is that the inline comments got overwritten if multiple groups of comments are modifying the same file (https://secure.phabricator.com/diffusion/P/browse/master/src/applications/differential/view/revisioncomment/DifferentialRevisionCommentView.php;f6748bc1907d946ffe5a0957964a5eb5fe90514f$299). Test Plan: the comments used to be missing renders now. Reviewers: epriestley, nh Reviewed By: epriestley CC: hwang, aran Differential Revision: https://secure.phabricator.com/D2135
This commit is contained in:
parent
4f5ce3d9a3
commit
bbeb850d63
1 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,11 @@ final class PhabricatorInlineSummaryView extends AphrontView {
|
||||||
private $groups = array();
|
private $groups = array();
|
||||||
|
|
||||||
public function addCommentGroup($name, array $items) {
|
public function addCommentGroup($name, array $items) {
|
||||||
$this->groups[$name] = $items;
|
if (!isset($this->groups[$name])) {
|
||||||
|
$this->groups[$name] = $items;
|
||||||
|
} else {
|
||||||
|
$this->groups[$name] = array_merge($this->groups[$name], $items);
|
||||||
|
}
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue