Page MenuHomePhabricator

D8510.diff
No OneTemporary

D8510.diff

diff --git a/src/applications/differential/customfield/DifferentialCustomField.php b/src/applications/differential/customfield/DifferentialCustomField.php
--- a/src/applications/differential/customfield/DifferentialCustomField.php
+++ b/src/applications/differential/customfield/DifferentialCustomField.php
@@ -51,11 +51,15 @@
return array();
}
- protected function parseObjectList($value, array $types) {
+ protected function parseObjectList(
+ $value,
+ array $types,
+ $allow_partial = false) {
return id(new PhabricatorObjectListQuery())
->setViewer($this->getViewer())
->setAllowedTypes($types)
->setObjectList($value)
+ ->setAllowPartialResults($allow_partial)
->execute();
}
diff --git a/src/applications/differential/customfield/DifferentialReviewedByField.php b/src/applications/differential/customfield/DifferentialReviewedByField.php
--- a/src/applications/differential/customfield/DifferentialReviewedByField.php
+++ b/src/applications/differential/customfield/DifferentialReviewedByField.php
@@ -51,6 +51,16 @@
return true;
}
+ public function parseValueFromCommitMessage($value) {
+ return $this->parseObjectList(
+ $value,
+ array(
+ PhabricatorPeoplePHIDTypeUser::TYPECONST,
+ PhabricatorProjectPHIDTypeProject::TYPECONST,
+ ),
+ $allow_partial = true);
+ }
+
public function getRequiredHandlePHIDsForCommitMessage() {
return $this->getValue();
}

File Metadata

Mime Type
text/plain
Expires
Thu, May 9, 7:07 PM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6275490
Default Alt Text
D8510.diff (1 KB)

Event Timeline