mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
MINOR Rename setModel to setDataModel due to API changes
This commit is contained in:
parent
6d77709704
commit
7c54c60311
@ -136,7 +136,7 @@ class ContentController extends Controller {
|
||||
public function handleRequest(SS_HTTPRequest $request, DataModel $model = null) {
|
||||
$child = null;
|
||||
$action = $request->param('Action');
|
||||
$this->setModel($model);
|
||||
$this->setDataModel($model);
|
||||
|
||||
// If nested URLs are enabled, and there is no action handler for the current request then attempt to pass
|
||||
// control to a child controller. This allows for the creation of chains of controllers which correspond to a
|
||||
|
@ -38,7 +38,7 @@ class ModelAsController extends Controller implements NestedController {
|
||||
*/
|
||||
public function handleRequest(SS_HTTPRequest $request, DataModel $model) {
|
||||
$this->request = $request;
|
||||
$this->setModel($model);
|
||||
$this->setDataModel($model);
|
||||
|
||||
$this->pushCurrent();
|
||||
|
||||
|
@ -106,7 +106,7 @@ class RootURLController extends Controller {
|
||||
*/
|
||||
public function handleRequest(SS_HTTPRequest $request, DataModel $model = null) {
|
||||
self::$is_at_root = true;
|
||||
$this->setModel($model);
|
||||
$this->setDataModel($model);
|
||||
|
||||
$this->pushCurrent();
|
||||
$this->init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user