mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 11:22:40 +01:00
97ccd93670
Summary: Fixes T5016. Ref T655. Ref T8434. Ref T8726. For "select" custom fields, permit construction of Herald rules. Test Plan: {F602997} Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T655, T5016, T8434, T8726 Differential Revision: https://secure.phabricator.com/D13618
28 lines
570 B
PHP
28 lines
570 B
PHP
<?php
|
|
|
|
final class ManiphestTaskStatusHeraldField
|
|
extends ManiphestTaskHeraldField {
|
|
|
|
const FIELDCONST = 'taskstatus';
|
|
|
|
public function getHeraldFieldName() {
|
|
return pht('Status');
|
|
}
|
|
|
|
public function getHeraldFieldValue($object) {
|
|
return $object->getStatus();
|
|
}
|
|
|
|
protected function getHeraldFieldStandardType() {
|
|
return self::STANDARD_PHID;
|
|
}
|
|
|
|
protected function getDatasource() {
|
|
return new ManiphestTaskStatusDatasource();
|
|
}
|
|
|
|
protected function getDatasourceValueMap() {
|
|
return ManiphestTaskStatus::getTaskStatusMap();
|
|
}
|
|
|
|
}
|