Ticket #742 (defect)

Opened 2 months ago

Last modified 2 months ago

Drag and dropping context does not work and generates an exception

Status: closed (fixed)

Reported by: ffarid@pragmatic-source.com Assigned to: lrbalt
Priority: normal Milestone: 1.7
Component: Coding Version: trunk
Severity: major Keywords:
Cc:

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'

Change History

06/25/08 18:23:01: Modified by lrbalt

  • owner changed from bsag to lrbalt.
  • status changed from new to assigned.
  • version changed from 1.6 to trunk.
  • severity changed from blocker to major.
  • milestone set to 1.7.

I see this in the latest git head too

06/25/08 18:28:01: Modified by lrbalt

  • status changed from assigned to closed.
  • resolution set 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?