Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Make HistoryViewerController a subclass of FormSchemaController #369

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/Controllers/HistoryViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace SilverStripe\VersionedAdmin\Controllers;

use InvalidArgumentException;
use SilverStripe\Admin\LeftAndMain;
use SilverStripe\Admin\FormSchemaController;
use SilverStripe\Admin\LeftAndMainFormRequestHandler;
use SilverStripe\Control\HTTPRequest;
use SilverStripe\Control\HTTPResponse;
Expand All @@ -22,7 +22,7 @@
* The HistoryViewerController provides AJAX endpoints for React to enable functionality, such as retrieving the form
* schema.
*/
class HistoryViewerController extends LeftAndMain
class HistoryViewerController extends FormSchemaController
{
/**
* @var string
Expand All @@ -42,8 +42,6 @@ class HistoryViewerController extends LeftAndMain

private static $required_permission_codes = 'CMS_ACCESS_CMSMain';

private static $ignore_menuitem = true;

private static array $url_handlers = [
'GET api/read' => 'apiRead',
'POST api/revert' => 'apiRevert',
Expand Down
Loading