Skip to content

Commit

Permalink
ENH Update code to reflect changes in silverstripe/admin (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Nov 19, 2024
1 parent a62fd3c commit 3aa65ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Extensions/ContentReviewCMSExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace SilverStripe\ContentReview\Extensions;

use SilverStripe\Admin\FormSchemaController;
use SilverStripe\Admin\LeftAndMain;
use SilverStripe\CMS\Controllers\CMSMain;
use SilverStripe\CMS\Model\SiteTree;
Expand Down Expand Up @@ -136,7 +137,7 @@ protected function findRecord($data)
*/
protected function getSchemaRequested()
{
$parts = $this->owner->getRequest()->getHeader(LeftAndMain::SCHEMA_HEADER);
$parts = $this->owner->getRequest()->getHeader(FormSchemaController::SCHEMA_HEADER);
return !empty($parts);
}

Expand All @@ -151,7 +152,7 @@ protected function getSchemaRequested()
*/
protected function getSchemaResponse($schemaID, $form = null, ValidationResult $errors = null, $extraData = [])
{
$parts = $this->owner->getRequest()->getHeader(LeftAndMain::SCHEMA_HEADER);
$parts = $this->owner->getRequest()->getHeader(FormSchemaController::SCHEMA_HEADER);
$data = $this->owner
->getFormSchema()
->getMultipartSchema($parts, $schemaID, $form, $errors);
Expand Down

0 comments on commit 3aa65ea

Please sign in to comment.