mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Updated SS_HTTPResponse_Exception -> HTTPResponse_Exception
This commit is contained in:
parent
7ee247e6df
commit
43c1b8352c
@ -3,7 +3,7 @@
|
||||
namespace SilverStripe\Forms\GridField;
|
||||
|
||||
use SilverStripe\Control\Controller;
|
||||
use SilverStripe\Control\SS_HTTPResponse_Exception;
|
||||
use SilverStripe\Control\HTTPResponse_Exception;
|
||||
use SilverStripe\Core\ClassInfo;
|
||||
use SilverStripe\Core\Config\Config;
|
||||
use SilverStripe\Core\Object;
|
||||
@ -180,7 +180,7 @@ class GridFieldAddNewMultiClass implements GridField_HTMLProvider, GridField_URL
|
||||
}
|
||||
|
||||
if(!$class || !array_key_exists($class, $classes)) {
|
||||
throw new SS_HTTPResponse_Exception(400);
|
||||
throw new HTTPResponse_Exception(400);
|
||||
}
|
||||
|
||||
$handler = Object::create($this->itemRequestClass,
|
||||
|
@ -3,7 +3,7 @@
|
||||
namespace SilverStripe\Forms\GridField;
|
||||
|
||||
use SilverStripe\Control\Controller;
|
||||
use SilverStripe\Control\SS_HTTPResponse_Exception;
|
||||
use SilverStripe\Control\HTTPResponse_Exception;
|
||||
use SilverStripe\Core\Object;
|
||||
use SilverStripe\Forms\FieldList;
|
||||
use SilverStripe\Forms\Form;
|
||||
@ -151,11 +151,11 @@ class GridFieldEditableColumns extends GridFieldDataColumns implements
|
||||
$list = $grid->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);
|
||||
|
Loading…
Reference in New Issue
Block a user