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

problem when editing a just reordered page #2182

Closed
hopewise opened this issue Feb 8, 2013 · 3 comments
Closed

problem when editing a just reordered page #2182

hopewise opened this issue Feb 8, 2013 · 3 comments

Comments

@hopewise
Copy link

hopewise commented Feb 8, 2013

Using the reorder pages option, I re-ordered pages by drag and drop at pages menu, then I clicked on edit for the page ( icon with pen ) , and then, I got this error in the page form: ( the @page is nil ) undefined method `persisted?' for nil:NilClass

Notice that the bug scenario is constant, when I drag the page, I click "Done Reordering Pages"

Then, I click edit the page I just moved, and then, here is what I get:

2013-02-08T18:52:21+00:00 app[web.1]: Started GET "/cms/refinery/pages/test7/edit" for 86.108.103.209 at 2013-02-08 18:52:21 +0000
2013-02-08T18:52:21+00:00 heroku[router]: at=info method=GET path=/cms/refinery/pages/test7/edit host=www.dcaclab.com fwd=86.108.103.209 dyno=web.1 queue=0 wait=0ms connect=1ms service=147ms status=500 bytes=399
2013-02-08T18:52:21+00:00 app[web.1]:
2013-02-08T18:52:21+00:00 app[web.1]: ActionView::Template::Error (undefined method persisted?' for nil:NilClass): 2013-02-08T18:52:21+00:00 app[web.1]: 1: <%= simple_form_for [refinery, :admin, @page], 2013-02-08T18:52:21+00:00 app[web.1]: 2: :url => (refinery.admin_page_path(@page.uncached_nested_url) if @page.persisted?) do |f| %> 2013-02-08T18:52:21+00:00 app[web.1]: app/views/refinery/admin/pages/_form.html.erb:2:in_app_views_refinery_admin_pages__form_html_erb__3238228840078173087_63152160'

@hopewise
Copy link
Author

hopewise commented Feb 8, 2013

If I refresh the pages menu, it works fine, so it needs a refresh page, I think there is a missing ID that should be solved in js

@costis
Copy link

costis commented Feb 12, 2013

I believe this a duplicate of #1985, which has been resolved with commit 1647bdb

@hopewise
Copy link
Author

Good!

On Tue, Feb 12, 2013 at 1:27 PM, Costis Panagiotopoulos <
[email protected]> wrote:

I believe this a duplicate of #1985#1985,
which has been resolved with commit 1647bdbhttps://github.com/refinery/refinerycms/commit/1647bdb68fda6fd46393fd800af39f766eb79b4a


Reply to this email directly or view it on GitHubhttps://github.com//issues/2182#issuecomment-13428407.

Kind Regards,

Samir Sabri
Software Architect& Developer
www.dcaclab.com
Jordan-Middle East

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

No branches or pull requests

3 participants