1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 03:02:43 +01:00

(stable) Fix "Reviewers" validation issue with empty reviewers

Summary: Fixes T11021.

Test Plan: Created a revision without reviewers.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11021

Differential Revision: https://secure.phabricator.com/D15968
This commit is contained in:
epriestley 2016-05-23 17:04:27 -07:00
parent 08cc80cc5c
commit 70b194398e

View file

@ -237,6 +237,10 @@ final class DifferentialReviewersField
} }
public function validateCommitMessageValue($value) { public function validateCommitMessageValue($value) {
if (!$value) {
return;
}
$author_phid = $this->getObject()->getAuthorPHID(); $author_phid = $this->getObject()->getAuthorPHID();
$config_self_accept_key = 'differential.allow-self-accept'; $config_self_accept_key = 'differential.allow-self-accept';