mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 05:20:56 +01:00
Fix an issue which could prevent blocking reviewers from being removed from revisions
Summary: Ref T11114. After evaluating typeahead tokens, we could process blocking reviewer removals incorrectly: we may get structures back. Test Plan: Removed blocking reviewers from the web UI. Reviewers: chad Reviewed By: chad Maniphest Tasks: T11114 Differential Revision: https://secure.phabricator.com/D17163
This commit is contained in:
parent
aa6e788f36
commit
425deeb523
1 changed files with 7 additions and 1 deletions
|
@ -24,7 +24,13 @@ final class DifferentialRevisionReviewersTransaction
|
|||
// First, remove any reviewers we're getting rid of.
|
||||
$rem = idx($value, '-', array());
|
||||
$rem = $datasource->evaluateTokens($rem);
|
||||
foreach ($rem as $phid) {
|
||||
foreach ($rem as $spec) {
|
||||
if (!is_array($spec)) {
|
||||
$phid = $spec;
|
||||
} else {
|
||||
$phid = $spec['phid'];
|
||||
}
|
||||
|
||||
unset($reviewers[$phid]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue