Differential D20223 Diff 48297 src/applications/maniphest/xaction/ManiphestTaskUnblockTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/xaction/ManiphestTaskUnblockTransaction.php
| Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | public function shouldHideForFeed() { | ||||
| $is_new = $this->getMetadataValue('blocker.new'); | $is_new = $this->getMetadataValue('blocker.new'); | ||||
| if ($is_new) { | if ($is_new) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| return parent::shouldHideForFeed(); | return parent::shouldHideForFeed(); | ||||
| } | } | ||||
| public function getRequiredCapabilities( | |||||
| $object, | |||||
| PhabricatorApplicationTransaction $xaction) { | |||||
| // When you close a task, we want to apply this transaction to its parents | |||||
| // even if you can not edit (or even see) those parents, so don't require | |||||
| // any capabilities. See PHI1059. | |||||
| return null; | |||||
| } | |||||
| } | } | ||||