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:
@@ -28,6 +28,17 @@ final class PhabricatorAuditInlineComment
|
|||||||
return $this->proxy;
|
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(
|
public static function loadDraftComments(
|
||||||
PhabricatorUser $viewer,
|
PhabricatorUser $viewer,
|
||||||
$commit_phid) {
|
$commit_phid) {
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ final class DiffusionInlineCommentController
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function loadComment($id) {
|
protected function loadComment($id) {
|
||||||
return id(new PhabricatorAuditInlineComment())->load($id);
|
return PhabricatorAuditInlineComment::loadID($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function loadCommentForEdit($id) {
|
protected function loadCommentForEdit($id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user