diff --git a/code/GridFieldAddExistingSearchButton.php b/code/GridFieldAddExistingSearchButton.php index d300d1c..c6a47c4 100755 --- a/code/GridFieldAddExistingSearchButton.php +++ b/code/GridFieldAddExistingSearchButton.php @@ -1,5 +1,7 @@ itemRequestClass, diff --git a/code/GridFieldAddNewMultiClassHandler.php b/code/GridFieldAddNewMultiClassHandler.php index fe87a36..e30dc6a 100644 --- a/code/GridFieldAddNewMultiClassHandler.php +++ b/code/GridFieldAddNewMultiClassHandler.php @@ -1,5 +1,7 @@ getList(); if(!ctype_digit($id)) { - throw new SS_HTTPResponse_Exception(null, 400); + throw new HTTPResponse_Exception(null, 400); } if(!$record = $list->byID($id)) { - throw new SS_HTTPResponse_Exception(null, 404); + throw new HTTPResponse_Exception(null, 404); } $form = $this->getForm($grid, $record); diff --git a/code/GridFieldExtensions.php b/code/GridFieldExtensions.php index 3b88a6d..c6aa7e2 100644 --- a/code/GridFieldExtensions.php +++ b/code/GridFieldExtensions.php @@ -1,5 +1,7 @@ dataClass()); foreach($classes as $class) { - if(singleton($class)->hasOwnTableDatabaseField($field)) { + if(singleton($class)->hasDataBaseField($field)) { return $class; } } diff --git a/code/GridFieldRequestHandler.php b/code/GridFieldRequestHandler.php index c06c324..26f013e 100644 --- a/code/GridFieldRequestHandler.php +++ b/code/GridFieldRequestHandler.php @@ -1,5 +1,7 @@