Drag and dropping context does not work and generates an exception
Hi,
When I try to drag and drap contexts, it doesn't work as the action generates an exception.
I'm using version 1.6, patched to trunk up to svn revision 859 approximatively.
Here is the corresponding log entry:
Processing ContextsController#order (for 212.180.1.47 at 2008-06-25 13:54:49) [POST]
Session ID: b6289a0955ad6574ac9a66f3f01c7f23
Parameters: {"authenticity_token"=>"5ce9f4fb2b3c77511c177a7d494ef4d79fc69171", "action"=>"order", "controller"=>"contexts", "list-contexts"=>["", "17", "2", "28", "1", "5"
, "3", "4", "13"]}
ActiveRecord::RecordNotFound (Couldn't find Context with ID=):
/vendor/rails/activerecord/lib/active_record/base.rb:1267:in `find_one'
/vendor/rails/activerecord/lib/active_record/base.rb:1250:in `find_from_ids'
/vendor/rails/activerecord/lib/active_record/base.rb:504:in `find'
/vendor/rails/activerecord/lib/active_record/base.rb:598:in `update'
/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:164:in `send'
/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:164:in `method_missing_without_paginate'
/vendor/rails/activerecord/lib/active_record/base.rb:1693:in `with_scope'
/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:164:in `send'
/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:164:in `method_missing_without_paginate'
/vendor/plugins/will_paginate/lib/will_paginate/finder.rb:139:in `method_missing'
/app/controllers/contexts_controller.rb:114:in `order'
When I try to drag and drap contexts, it doesn't work as the action generates an exception.
I'm using version 1.6, patched to trunk up to svn revision 859 approximatively.
Here is the corresponding log entry:
Processing ContextsController#order (for 212.180.1.47 at 2008-06-25 13:54:49) [POST]
Session ID: b6289a0955ad6574ac9a66f3f01c7f23
Parameters: {"authenticity_token"=>"5ce9f4fb2b3c77511c177a7d494ef4d79fc69171", "action"=>"order", "controller"=>"contexts", "list-contexts"=>["", "17", "2", "28", "1", "5"
, "3", "4", "13"]}
ActiveRecord::RecordNotFound (Couldn't find Context with ID=):
/vendor/rails/activerecord/lib/active_record/base.rb:1267:in `find_one'
/vendor/rails/activerecord/lib/active_record/base.rb:1250:in `find_from_ids'
/vendor/rails/activerecord/lib/active_record/base.rb:504:in `find'
/vendor/rails/activerecord/lib/active_record/base.rb:598:in `update'
/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:164:in `send'
/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:164:in `method_missing_without_paginate'
/vendor/rails/activerecord/lib/active_record/base.rb:1693:in `with_scope'
/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:164:in `send'
/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:164:in `method_missing_without_paginate'
/vendor/plugins/will_paginate/lib/will_paginate/finder.rb:139:in `method_missing'
/app/controllers/contexts_controller.rb:114:in `order'
Leave a comment
on 2008-06-25 13:28 *
By Anonymous
Status changed from Accepted to Fixed
Status changed from Accepted to Fixed
I think I've fixed this in http://github.com/bsag/tracks/commit/30c49b685fbf251eb84acff6f2f81f3797ed1c7d
I'm not sure what caused this. Perhaps a change in sortable with the rails upgrade?
I'm not sure what caused this. Perhaps a change in sortable with the rails upgrade?
(In revision:033b4daf9a2ddd02dc54df999c24aade995aa3c6) fix #742. The tests were already there for some time
Branch: master
Branch: master