1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +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:
epriestley 2015-09-25 15:00:55 -07:00
parent 3e60740c7c
commit 99d972fc81

View file

@ -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();
}
}