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

Removed nested transaction which always commits page change on preview, Fixes GH-319 #320

Merged
merged 3 commits into from Feb 17, 2012

Conversation

blj
Copy link
Collaborator

@blj blj commented Feb 10, 2012

For some reason the nested transaction in Admin::PagesController#render_preview commits the transaction even though the PreviewStop error is raised. Removing the inner transaction fixes this.

@saturnflyer
Copy link
Member

Why do you need to skip verify_authenticity_token?

@blj
Copy link
Collaborator Author

blj commented Feb 17, 2012

@saturnflyer I thought it is not serving any purpose, it is certainly not making any change to the database. Can ignore it.

@saturnflyer
Copy link
Member

will you alter this pull request to remove that addition?

saturnflyer added a commit that referenced this pull request Feb 17, 2012
Removed nested transaction which always commits page change on preview, Fixes GH-319
@saturnflyer saturnflyer merged commit dd27da8 into radiant:master Feb 17, 2012
@saturnflyer
Copy link
Member

Thanks for your help @blj!

@blj
Copy link
Collaborator Author

blj commented Feb 17, 2012

@saturnflyer I just did a revert on the commit, if you do not like it, let me know I can send fresh pull request instead. Thanks.

@blj
Copy link
Collaborator Author

blj commented Feb 17, 2012

@saturnflyer Ah I see it is done already. Thanks.

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.

None yet

2 participants