mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 10:42:41 +01:00
Differential - fix bogus foreach(null)
Summary: Default $phids to array() and update it if getValue() has something pertinent... Fixes T6292. Test Plan: just used the ole logic noodle on this one. Reviewers: chad, epriestley Reviewed By: chad, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6292 Differential Revision: https://secure.phabricator.com/D10697
This commit is contained in:
parent
c728c0ac60
commit
c51489f138
1 changed files with 5 additions and 1 deletions
|
@ -63,7 +63,11 @@ final class DifferentialReviewersField
|
|||
}
|
||||
|
||||
public function getRequiredHandlePHIDsForEdit() {
|
||||
return mpull($this->getValue(), 'getReviewerPHID');
|
||||
$phids = array();
|
||||
if ($this->getValue()) {
|
||||
$phids = mpull($this->getValue(), 'getReviewerPHID');
|
||||
}
|
||||
return $phids;
|
||||
}
|
||||
|
||||
public function renderEditControl(array $handles) {
|
||||
|
|
Loading…
Reference in a new issue