From ae0e97a499743228551931a7d11e48b89b55f71e Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 14 Dec 2016 11:01:58 -0800 Subject: [PATCH] Remove unusual explicit calls to policy capability descriptions from Diviner Summary: Fixes T12015. This is weird and probably got copy/pasted from something else that was also being weird, since the methods were empty and I previously removed them. Test Plan: Edited a book in Diviner. Reviewers: chad, avivey Reviewed By: avivey Maniphest Tasks: T12015 Differential Revision: https://secure.phabricator.com/D17056 --- .../diviner/controller/DivinerBookEditController.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/applications/diviner/controller/DivinerBookEditController.php b/src/applications/diviner/controller/DivinerBookEditController.php index 758cc190bb..b783e96746 100644 --- a/src/applications/diviner/controller/DivinerBookEditController.php +++ b/src/applications/diviner/controller/DivinerBookEditController.php @@ -92,15 +92,13 @@ final class DivinerBookEditController extends DivinerController { ->setName('viewPolicy') ->setPolicyObject($book) ->setCapability($view_capability) - ->setPolicies($policies) - ->setCaption($book->describeAutomaticCapability($view_capability))) + ->setPolicies($policies)) ->appendChild( id(new AphrontFormPolicyControl()) ->setName('editPolicy') ->setPolicyObject($book) ->setCapability($edit_capability) - ->setPolicies($policies) - ->setCaption($book->describeAutomaticCapability($edit_capability))) + ->setPolicies($policies)) ->appendChild( id(new AphrontFormSubmitControl()) ->setValue(pht('Save'))