Differential D17004 Diff 41390 src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldBlueprints.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldBlueprints.php
| Show All 18 Lines | public function applyApplicationTransactionExternalEffects( | ||||
| DrydockAuthorization::applyAuthorizationChanges( | DrydockAuthorization::applyAuthorizationChanges( | ||||
| $this->getViewer(), | $this->getViewer(), | ||||
| $xaction->getObjectPHID(), | $xaction->getObjectPHID(), | ||||
| $old, | $old, | ||||
| $new); | $new); | ||||
| } | } | ||||
| public function renderPropertyViewValue(array $handles) { | protected function renderValue() { | ||||
| $value = $this->getFieldValue(); | $value = $this->getFieldValue(); | ||||
| if (!$value) { | if (!$value) { | ||||
| return phutil_tag('em', array(), pht('No authorized blueprints.')); | return phutil_tag('em', array(), pht('No authorized blueprints.')); | ||||
| } | } | ||||
| return id(new DrydockObjectAuthorizationView()) | return id(new DrydockObjectAuthorizationView()) | ||||
| ->setUser($this->getViewer()) | ->setUser($this->getViewer()) | ||||
| ->setObjectPHID($this->getObject()->getPHID()) | ->setObjectPHID($this->getObject()->getPHID()) | ||||
| ->setBlueprintPHIDs($value); | ->setBlueprintPHIDs($value); | ||||
| } | } | ||||
| } | } | ||||