Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/herald/field/HeraldAnotherRuleField.php b/src/applications/herald/field/HeraldAnotherRuleField.php
index 920d7e89e3..623abab2f4 100644
--- a/src/applications/herald/field/HeraldAnotherRuleField.php
+++ b/src/applications/herald/field/HeraldAnotherRuleField.php
@@ -1,38 +1,48 @@
<?php
final class HeraldAnotherRuleField extends HeraldField {
const FIELDCONST = 'rule';
public function getHeraldFieldName() {
return pht('Another Herald rule');
}
public function getFieldGroupKey() {
return HeraldBasicFieldGroup::FIELDGROUPKEY;
}
public function supportsObject($object) {
return true;
}
public function getHeraldFieldValue($object) {
return null;
}
public function getHeraldFieldConditions() {
return array(
HeraldAdapter::CONDITION_RULE,
HeraldAdapter::CONDITION_NOT_RULE,
);
}
public function getHeraldFieldValueType($condition) {
// NOTE: This is a bit magical because we don't currently have a reasonable
// way to populate it from here.
return id(new HeraldSelectFieldValue())
->setKey(self::FIELDCONST)
->setOptions(array());
}
+ public function renderConditionValue(
+ PhabricatorUser $viewer,
+ $condition,
+ $value) {
+
+ $value = (array)$value;
+
+ return $viewer->renderHandleList($value);
+ }
+
}

File Metadata

Mime Type
text/x-diff
Expires
Tue, Jun 10, 4:30 PM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
140527
Default Alt Text
(1 KB)

Event Timeline