diff --git a/code/GridFieldAddExistingSearchButton.php b/code/GridFieldAddExistingSearchButton.php index 78638a2..d300d1c 100755 --- a/code/GridFieldAddExistingSearchButton.php +++ b/code/GridFieldAddExistingSearchButton.php @@ -1,4 +1,10 @@ context->getFields(), new FieldList( FormAction::create('doSearch', _t('GridFieldExtensions.SEARCH', 'Search')) diff --git a/code/GridFieldAddNewInlineButton.php b/code/GridFieldAddNewInlineButton.php index d30af17..559de71 100755 --- a/code/GridFieldAddNewInlineButton.php +++ b/code/GridFieldAddNewInlineButton.php @@ -1,4 +1,17 @@ param('ClassName'); $classes = $this->getClasses($grid); - $component = $grid->getConfig()->getComponentByType('GridFieldDetailForm'); + $component = $grid->getConfig()->getComponentByType('SilverStripe\\Forms\\GridField\\GridFieldDetailForm'); if(!$component) { throw new Exception('The add new multi class component requires the detail form component.'); diff --git a/code/GridFieldAddNewMultiClassHandler.php b/code/GridFieldAddNewMultiClassHandler.php index cf99b5b..fe87a36 100644 --- a/code/GridFieldAddNewMultiClassHandler.php +++ b/code/GridFieldAddNewMultiClassHandler.php @@ -1,4 +1,8 @@ getConfig()->getComponentByType('GridFieldPaginator')) { + if(!$paginator = $grid->getConfig()->getComponentByType('SilverStripe\\Forms\\GridField\\GridFieldPaginator')) { $this->httpError(404, 'Paginator component not found'); } @@ -461,7 +481,7 @@ class GridFieldOrderableRows extends RequestHandler implements $isVersioned = false; $class = $list->dataClass(); if ($class == $this->getSortTable($list)) { - $isVersioned = $class::has_extension('Versioned'); + $isVersioned = $class::has_extension('SilverStripe\\ORM\\Versioning\\Versioned'); } // Loop through each item, and update the sort values which do not diff --git a/code/GridFieldRequestHandler.php b/code/GridFieldRequestHandler.php index 4391f70..c06c324 100644 --- a/code/GridFieldRequestHandler.php +++ b/code/GridFieldRequestHandler.php @@ -1,4 +1,17 @@