1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 15:22:41 +01:00

Fix one more "Reviewers" wire format issue

Summary: Fixes T11010. This also needs to be inflated until we fix the whole client/server responsibility issue here.

Test Plan:
  - Created a revision while observing error log, no error.
  - Disabled "allow self accept", tried to make myself a reviewer, got rejected with an error message.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11010

Differential Revision: https://secure.phabricator.com/D15966
This commit is contained in:
epriestley 2016-05-23 10:42:05 -07:00
parent 627b95bf78
commit e1ad312fdd

View file

@ -242,6 +242,7 @@ final class DifferentialReviewersField
$config_self_accept_key = 'differential.allow-self-accept';
$allow_self_accept = PhabricatorEnv::getEnvConfig($config_self_accept_key);
$value = $this->inflateReviewers($value);
foreach ($value as $spec) {
$phid = $spec['phid'];