mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 13:30:55 +01:00
Fix badges edit form
Summary: Make sure to subclass the right controller on badges. Test Plan: arc liberate, make a custom badges edit form. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D14961
This commit is contained in:
parent
91a01e5703
commit
ab27af9fc6
2 changed files with 3 additions and 2 deletions
|
@ -5954,7 +5954,7 @@ phutil_register_library_map(array(
|
||||||
'PhabricatorBadgesCreateCapability' => 'PhabricatorPolicyCapability',
|
'PhabricatorBadgesCreateCapability' => 'PhabricatorPolicyCapability',
|
||||||
'PhabricatorBadgesDAO' => 'PhabricatorLiskDAO',
|
'PhabricatorBadgesDAO' => 'PhabricatorLiskDAO',
|
||||||
'PhabricatorBadgesDefaultEditCapability' => 'PhabricatorPolicyCapability',
|
'PhabricatorBadgesDefaultEditCapability' => 'PhabricatorPolicyCapability',
|
||||||
'PhabricatorBadgesEditController' => 'PhabricatorPasteController',
|
'PhabricatorBadgesEditController' => 'PhabricatorBadgesController',
|
||||||
'PhabricatorBadgesEditEngine' => 'PhabricatorEditEngine',
|
'PhabricatorBadgesEditEngine' => 'PhabricatorEditEngine',
|
||||||
'PhabricatorBadgesEditRecipientsController' => 'PhabricatorBadgesController',
|
'PhabricatorBadgesEditRecipientsController' => 'PhabricatorBadgesController',
|
||||||
'PhabricatorBadgesEditor' => 'PhabricatorApplicationTransactionEditor',
|
'PhabricatorBadgesEditor' => 'PhabricatorApplicationTransactionEditor',
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
final class PhabricatorBadgesEditController extends PhabricatorPasteController {
|
final class PhabricatorBadgesEditController extends
|
||||||
|
PhabricatorBadgesController {
|
||||||
|
|
||||||
public function handleRequest(AphrontRequest $request) {
|
public function handleRequest(AphrontRequest $request) {
|
||||||
return id(new PhabricatorBadgesEditEngine())
|
return id(new PhabricatorBadgesEditEngine())
|
||||||
|
|
Loading…
Reference in a new issue