Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14148111
D18302.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D18302.diff
View Options
diff --git a/src/applications/differential/parser/DifferentialChangesetParser.php b/src/applications/differential/parser/DifferentialChangesetParser.php
--- a/src/applications/differential/parser/DifferentialChangesetParser.php
+++ b/src/applications/differential/parser/DifferentialChangesetParser.php
@@ -996,9 +996,9 @@
$line = $comment->getLineNumber();
if ($new_side) {
- $back_line = $new_backmap[$line];
+ $back_line = idx($new_backmap, $line);
} else {
- $back_line = $old_backmap[$line];
+ $back_line = idx($old_backmap, $line);
}
if ($back_line != $line) {
diff --git a/src/applications/differential/parser/__tests__/DifferentialChangesetParserTestCase.php b/src/applications/differential/parser/__tests__/DifferentialChangesetParserTestCase.php
--- a/src/applications/differential/parser/__tests__/DifferentialChangesetParserTestCase.php
+++ b/src/applications/differential/parser/__tests__/DifferentialChangesetParserTestCase.php
@@ -33,7 +33,7 @@
}
}
- public function testDiffBinary() {
+ public function testRenderChangeset() {
$hunk = id(new DifferentialModernHunk())
->setChanges('');
@@ -51,11 +51,11 @@
$parser = id(new DifferentialChangesetParser())
->setChangeset($changeset)
->setMarkupEngine($engine)
- //->setMask(array())
+ ->setMask(array())
->setUser($viewer)
->parseInlineComment($inline);
- $this->assertEqual(null, $parser->renderChangeset());
+ $this->assertEqual('', $parser->renderChangeset());
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 5, 9:05 AM (13 h, 37 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6828673
Default Alt Text
D18302.diff (1 KB)
Attached To
Mode
D18302: Fix "undefined index" error in Differential changeset parser
Attached
Detach File
Event Timeline
Log In to Comment