Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15282853
D21760.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
899 B
Referenced Files
None
Subscribers
None
D21760.diff
View Options
diff --git a/src/infrastructure/diff/engine/PhabricatorInlineCommentAdjustmentEngine.php b/src/infrastructure/diff/engine/PhabricatorInlineCommentAdjustmentEngine.php
--- a/src/infrastructure/diff/engine/PhabricatorInlineCommentAdjustmentEngine.php
+++ b/src/infrastructure/diff/engine/PhabricatorInlineCommentAdjustmentEngine.php
@@ -141,9 +141,7 @@
}
}
- // Find the smallest "new" changeset ID. We'll consider everything
- // larger than this to be "newer", and everything smaller to be "older".
- $first_new_id = min(mpull($new, 'getID'));
+ $new_id_map = mpull($new, null, 'getID');
$results = array();
foreach ($inlines as $inline) {
@@ -163,7 +161,7 @@
$target_id = null;
- if ($changeset_id >= $first_new_id) {
+ if (isset($new_id_map[$changeset_id])) {
$name_map = $name_map_new;
$is_new = true;
} else {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 5, 3:08 AM (1 d, 8 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7223419
Default Alt Text
D21760.diff (899 B)
Attached To
Mode
D21760: Fix an issue where we may "min()" an empty array when viewing a revision with no changesets
Attached
Detach File
Event Timeline
Log In to Comment