mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
parent
9f57576975
commit
2756d60da2
@ -76,7 +76,8 @@ class DevelopmentAdmin extends Controller {
|
|||||||
// Backwards compat: Default to "draft" stage, which is important
|
// Backwards compat: Default to "draft" stage, which is important
|
||||||
// for tasks like dev/build which call DataObject->requireDefaultRecords(),
|
// for tasks like dev/build which call DataObject->requireDefaultRecords(),
|
||||||
// but also for other administrative tasks which have assumptions about the default stage.
|
// but also for other administrative tasks which have assumptions about the default stage.
|
||||||
Versioned::reading_stage('Stage');
|
Versioned::reading_stage(Versioned::DRAFT);
|
||||||
|
Versioned::set_default_reading_mode(Versioned::get_reading_mode());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function index() {
|
public function index() {
|
||||||
|
Loading…
Reference in New Issue
Block a user