Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F5424729
D509.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
593 B
Referenced Files
None
Subscribers
None
D509.id.diff
View Options
diff --git a/app/Phabricator/PhabricatorStory.php b/app/Phabricator/PhabricatorStory.php
--- a/app/Phabricator/PhabricatorStory.php
+++ b/app/Phabricator/PhabricatorStory.php
@@ -108,8 +108,8 @@
* @return string The object type, as a 4 letters string (e.g. 'TASK')
*/
public function getObjectType () {
- if (!array_key_exists('objectPHID', $this->data)) {
- return 'MISC';
+ if ($this->data === null || !array_key_exists('objectPHID', $this->data)) {
+ return 'VOID';
}
return substr($this->data['objectPHID'], 5, 4);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 11, 09:05 (20 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2472974
Default Alt Text
D509.id.diff (593 B)
Attached To
Mode
D509: Return 'VOID' as Phabricator fallback object type
Attached
Detach File
Event Timeline
Log In to Comment