mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-26 23:40:57 +01:00
Fix Herald rule actions on empty custom PHID fields
Summary: Fixes T9260. That task has a good description of the issue. Test Plan: Followed steps in T9260 to reproduce the issue. Applied patch; issue went away. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9260 Differential Revision: https://secure.phabricator.com/D14169
This commit is contained in:
parent
3e60740c7c
commit
99d972fc81
1 changed files with 10 additions and 0 deletions
|
@ -166,4 +166,14 @@ abstract class PhabricatorStandardCustomFieldPHIDs
|
|||
);
|
||||
}
|
||||
|
||||
public function getHeraldFieldValue() {
|
||||
// If the field has a `null` value, make sure we hand an `array()` to
|
||||
// Herald.
|
||||
$value = parent::getHeraldFieldValue();
|
||||
if ($value) {
|
||||
return $value;
|
||||
}
|
||||
return array();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue