mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-20 05:42:40 +01:00
Diffusion - be sure to properly unserialize result from conduit query
Summary: Fixes T7256. Test Plan: Looked at rXPRF0a7a5f69f5d7 in a local instance. things looked great both pre and post patch. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T7256 Differential Revision: https://secure.phabricator.com/D11790
This commit is contained in:
parent
733a9c40ee
commit
3fcc3fdedf
2 changed files with 5 additions and 2 deletions
|
@ -61,9 +61,10 @@ final class DiffusionMergedCommitsQueryConduitAPIMethod
|
|||
// Remove the merge commit.
|
||||
$hashes = array_diff($hashes, array($commit));
|
||||
|
||||
return DiffusionQuery::loadHistoryForCommitIdentifiers(
|
||||
$history = DiffusionQuery::loadHistoryForCommitIdentifiers(
|
||||
$hashes,
|
||||
$drequest);
|
||||
return mpull($history, 'toDictionary');
|
||||
}
|
||||
|
||||
protected function getMercurialResult(ConduitAPIRequest $request) {
|
||||
|
@ -100,9 +101,10 @@ final class DiffusionMergedCommitsQueryConduitAPIMethod
|
|||
// Remove the merge commit.
|
||||
$hashes = array_diff($hashes, array($commit));
|
||||
|
||||
return DiffusionQuery::loadHistoryForCommitIdentifiers(
|
||||
$history = DiffusionQuery::loadHistoryForCommitIdentifiers(
|
||||
$hashes,
|
||||
$drequest);
|
||||
return mpull($history, 'toDictionary');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -894,6 +894,7 @@ final class DiffusionCommitController extends DiffusionController {
|
|||
if (!$merges) {
|
||||
return null;
|
||||
}
|
||||
$merges = DiffusionPathChange::newFromConduit($merges);
|
||||
|
||||
$caption = null;
|
||||
if (count($merges) > $limit) {
|
||||
|
|
Loading…
Reference in a new issue