-
-
Save darkwing/dd4575fec84d468f6763616fccd6bc53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$field_list = PhabricatorCustomField::getObjectFields( | |
$revision, | |
PhabricatorCustomField::ROLE_DEFAULT | |
); | |
$fields = $field_list->getFields(); | |
foreach($fields as $field_key => $value) { | |
if($field_key === 'differential:bugzilla-bug-id') { | |
echo 'FOUND !!!!'.$field_key.' ('.$value->getValue().')'; | |
return $value->getValue(); // Outputs "null" despite the value being "1" on the revision detail page | |
} | |
else { | |
echo 'FAILED KEY CHECK: '.$field_key; | |
} | |
} | |
// No bug number found...how?! | |
return 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment