Differential D17054 Diff 41023 src/applications/differential/customfield/DifferentialCoreCustomField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialCoreCustomField.php
| Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | abstract class DifferentialCoreCustomField | ||||
| public function canDisableField() { | public function canDisableField() { | ||||
| return false; | return false; | ||||
| } | } | ||||
| public function shouldAppearInApplicationTransactions() { | public function shouldAppearInApplicationTransactions() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function shouldAppearInEditView() { | |||||
| return true; | |||||
| } | |||||
| public function readValueFromObject(PhabricatorCustomFieldInterface $object) { | public function readValueFromObject(PhabricatorCustomFieldInterface $object) { | ||||
| if ($this->isCoreFieldRequired()) { | if ($this->isCoreFieldRequired()) { | ||||
| $this->setFieldError(true); | $this->setFieldError(true); | ||||
| } | } | ||||
| $this->setValue($this->readValueFromRevision($object)); | $this->setValue($this->readValueFromRevision($object)); | ||||
| } | } | ||||
| public function getOldValueForApplicationTransactions() { | public function getOldValueForApplicationTransactions() { | ||||
| ▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines | |||||