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

Fixes GH-1892 by properly updating the form action when the title is changed during save-and-continue #1944

Closed
wants to merge 1 commit into from

Conversation

tsemana
Copy link
Contributor

@tsemana tsemana commented Sep 14, 2012

Passes the admin_pages_path url using the items current title back to the view using a hidden field tag. The save-and-continue javascript then updates the form action with the new url.
Includes request spec for the first save-and-continue and regression test for the bug described in GH-1892.

<%= value %>
<%= link_to t(".close#{'_this_message' if key.to_s == "message"}"), "",
:id => "flash_close" %>
</div>
Copy link
Member

Choose a reason for hiding this comment

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

indentation doesn't match opening <div

@ugisozols
Copy link
Member

Looking good.

@tsemana will you tackle preview bug we were talking about in irc?

@tsemana
Copy link
Contributor Author

tsemana commented Sep 15, 2012

Thanks, yes I will. It's weird in that the regression spec I wrote works passes even though it fails when done manually... Either way I'll give it a crack

@parndt
Copy link
Member

parndt commented Sep 18, 2012

Merged to 6d5c910 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.

3 participants