mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-18 18:51:12 +01:00
Fix unmigrated load() call in Audit inlines
Summary: Fixes T5711. I missed this somehow in grepping. :/ Test Plan: Edited and deleted an inline draft. Reviewers: chad, btrahan, joshuaspence Reviewed By: joshuaspence Subscribers: epriestley Maniphest Tasks: T5711 Differential Revision: https://secure.phabricator.com/D10051
This commit is contained in:
parent
1450c0e8d6
commit
51b5bf1e67
2 changed files with 12 additions and 1 deletions
|
@ -28,6 +28,17 @@ final class PhabricatorAuditInlineComment
|
|||
return $this->proxy;
|
||||
}
|
||||
|
||||
public static function loadID($id) {
|
||||
$inlines = id(new PhabricatorAuditTransactionComment())->loadAllWhere(
|
||||
'id = %d',
|
||||
$id);
|
||||
if (!$inlines) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return head(self::buildProxies($inlines));
|
||||
}
|
||||
|
||||
public static function loadDraftComments(
|
||||
PhabricatorUser $viewer,
|
||||
$commit_phid) {
|
||||
|
|
|
@ -40,7 +40,7 @@ final class DiffusionInlineCommentController
|
|||
}
|
||||
|
||||
protected function loadComment($id) {
|
||||
return id(new PhabricatorAuditInlineComment())->load($id);
|
||||
return PhabricatorAuditInlineComment::loadID($id);
|
||||
}
|
||||
|
||||
protected function loadCommentForEdit($id) {
|
||||
|
|
Loading…
Reference in a new issue