#166 ✓hold
Priit Tamboom

Bug: Reorder sections broken with new theme

Reported by Priit Tamboom | December 16th, 2008 @ 02:09 PM | in Release 0.1.3

I haven't investigate but "reorder section" is broken with new theme.

Comments and changes to this ticket

  • Sven Fuchs

    Sven Fuchs January 9th, 2009 @ 01:46 PM

    • State changed from “new” to “resolved”

    i believe this now works? otherwise please reopen and assign to 0.1.1 w/ Marko responsible

  • Jorge Dias

    Jorge Dias March 15th, 2009 @ 10:02 PM

    • Tag changed from section to reorder, section

    Reorder of sections is broken. It doesn't work when the dragged element doesn't have a parent_id, because simple_nested_set, tries to do move_by_attributes and this fails because it can't find the parent.

    This is the output I'm getting:

    Processing Admin::SectionsController#update_all (for at 2009-03-15 21:59:01) [PUT] Parameters: {"site_id"=>"1", "sections"=>{"3"=>{"left_id"=>"1", "parent_id"=>"null"}}, "authenticity_token"=>"ZdxWZLZLyXxD1je0GJ01SwvZGVBxG03uXfwPWwL/85c="} Site Load (0.8ms) SELECT * FROM "sites" WHERE ("sites"."id" = 1) User Load (0.8ms) SELECT * FROM "users" WHERE ("users"."id" = 1) LIMIT 1 Rbac::Role::Base Load (0.4ms) SELECT * FROM "roles" WHERE ("roles".user_id = 1) Section Load (0.8ms) SELECT * FROM "sections" WHERE ("sections"."id" = 3) AND ("sections".site_id = 1) ORDER BY lft

    ActiveRecord::RecordNotFound (Couldn't find Section without an ID): vendor/plugins/adva_cms/app/controllers/admin/sections_controller.rb:58:in update_all'

    Rendered rescues/trace (167.3ms) Rendered rescues/request_and_response (2.7ms) Rendering rescues/layout (not_found)

  • Sven Fuchs

    Sven Fuchs March 15th, 2009 @ 10:08 PM

    • State changed from “resolved” to “open”

    ok, reopened

  • Pedro Custódio

    Pedro Custódio March 26th, 2009 @ 02:01 PM


    I've just came across ADVA and I need to tell you that this bug with the sections really makes it unbearably possible to setup a new website and do anything with it :(

    I've managed to delete all categories by accident, remove categories by dropping them within others, so i guess we can all this pretty unstable.

    Don't know if this was the right ticket, but I guess it's better to report here.

  • Marko Seppä

    Marko Seppä March 31st, 2009 @ 10:10 AM

    • Milestone set to Release 0.1.3
    • Assigned user changed from “Sven Fuchs” to “Marko Seppä”

    Hi Pedro!

    Could you create a new ticket relating that deleting all categories by an accident, with the info how to reproduce it.

  • Marko Seppä

    Marko Seppä March 31st, 2009 @ 10:50 AM

    • State changed from “open” to “hold”

    On hold untill we have converted from prototype to jQuery. See ticket 274 for more details.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<p>Cutting edge cms, blog, wiki, forum ... plattform.</p>

<p>Find the code on <a href="http://github.com/svenfuchs/adva_cms/tree/master">GitHub: adva cms</a></p>

<p>Part of the business application framework <a href="http://www.advabest.org/">adva best</a>.</p>