diff --git a/_config.php b/_config.php new file mode 100644 index 0000000..8b68529 --- /dev/null +++ b/_config.php @@ -0,0 +1,7 @@ +getDisplayFields($grid)); if($grid->getList()) { - $record = Object::create($grid->getModelClass()); + $record = SS_Object::create($grid->getModelClass()); } else { $record = null; } diff --git a/code/GridFieldAddNewMultiClass.php b/code/GridFieldAddNewMultiClass.php index 108e434..3a341ac 100755 --- a/code/GridFieldAddNewMultiClass.php +++ b/code/GridFieldAddNewMultiClass.php @@ -174,7 +174,7 @@ class GridFieldAddNewMultiClass implements GridField_HTMLProvider, GridField_URL } $unsanitisedClass = $this->unsanitiseClassName($class); - $handler = Object::create($this->itemRequestClass, + $handler = SS_Object::create($this->itemRequestClass, $grid, $component, new $unsanitisedClass(), $grid->getForm()->getController(), 'add-multi-class' ); $handler->setTemplate($component->getTemplate()); diff --git a/code/GridFieldEditableColumns.php b/code/GridFieldEditableColumns.php index 996dbf9..9abe931 100644 --- a/code/GridFieldEditableColumns.php +++ b/code/GridFieldEditableColumns.php @@ -196,7 +196,7 @@ class GridFieldEditableColumns extends GridFieldDataColumns implements $extra = $list->getExtraFields(); if($extra && array_key_exists($col, $extra)) { - $field = Object::create_from_string($extra[$col], $col)->scaffoldFormField(); + $field = SS_Object::create_from_string($extra[$col], $col)->scaffoldFormField(); } }