spree/spree — Issue #1029: Option type sortables are broken in the admin
Author: citrus
Created: 2012-01-26 04:06:15+00:00
State: open

On spree/edge I can't sort the option types in the admin.

Here's how I got here:

```bash
ruby -v
# ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]
rails -v
# Rails 3.1.3
rails new spree_option_types_example
cd spree_option_types_example
echo "gem 'spree', :git => 'git://github.com/spree/spree.git'" >> Gemfile
bundle install
rails g spree:install
rails s
```
Now navigate to Admin > Products > Options Types and try to drag and drop the sort handles.

In my safari console I get an seemingly unrelated js error which could however be breaking everything...

```js
all.js:27291TypeError: 'undefined' is not an object (near '...data("autocomplete")._renderItem = funct...')
```

I'll dig a bit deeper but thought I'd share in case anyone had any immediate ideas...

Cheers!

-Spencer