Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13184686
D14169.id34235.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
642 B
Referenced Files
None
Subscribers
None
D14169.id34235.diff
View Options
diff --git a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldPHIDs.php b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldPHIDs.php
--- a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldPHIDs.php
+++ b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldPHIDs.php
@@ -166,4 +166,14 @@
);
}
+ 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();
+ }
+
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 11, 10:06 PM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6273048
Default Alt Text
D14169.id34235.diff (642 B)
Attached To
Mode
D14169: Fix Herald rule actions on empty custom PHID fields
Attached
Detach File
Event Timeline
Log In to Comment