Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG Fix controller bypassing init #42

Merged

Conversation

tractorcow
Copy link

No description provided.

@tractorcow tractorcow force-pushed the pulls/fix-controller-init branch from d0bda7f to 5191479 Compare August 26, 2015 23:45
@@ -42,25 +42,50 @@ public function preview(SS_HTTPRequest $request) {
return $this->errorPage();
}

$page = $shareToken->Page();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In some cases this was returning a $page with ID = 0, so change this to check for stage version explicitly.

assertchris added a commit that referenced this pull request Aug 26, 2015
@assertchris assertchris merged commit ab5efe3 into silverstripe:master Aug 26, 2015
@tractorcow tractorcow deleted the pulls/fix-controller-init branch August 27, 2015 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants