Merge pull request #8122 from open-sausages/pulls/3/fix-dev-build-stage

BUG Prevent stage querystring args during dev/build
This commit is contained in:
Daniel Hensby 2018-06-05 16:35:49 +01:00 committed by GitHub
commit baf4450961
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {