Permissions filter problem

Hi,

When I create a new role, and then try to add a new filter to it, I get a traceback:

https://gist.github.com/stbenjam/931e49b02245ff22da51

At first I thought it was something I was doing but this happens to me even in the develop branch. The culprit seems to be

    <%= autocomplete_f f, :search,
                       :disabled => f.object.unlimited?,
                       :path => resource_path(f.object.resource_type), :control_group_id => 'search_group' %>

where f.object.resource_type is returning nil. I’ve been chasing this for a while and can’t figure out what’s going wrong.

Anyone have an idea?

··· -- Stephen Benjamin stephen@bitbin.de

Disregard, it was #4553 which was just merged.

··· On 06 Mar 2014, at 14:13, Stephen Benjamin wrote:

Hi,

When I create a new role, and then try to add a new filter to it, I get a traceback:

https://gist.github.com/stbenjam/931e49b02245ff22da51

At first I thought it was something I was doing but this happens to me even in the develop branch. The culprit seems to be

   <%= autocomplete_f f, :search,
                      :disabled => f.object.unlimited?,
                      :path => resource_path(f.object.resource_type), :control_group_id => 'search_group' %>

where f.object.resource_type is returning nil. I’ve been chasing this for a while and can’t figure out what’s going wrong.

Anyone have an idea?


Stephen Benjamin
stephen@bitbin.de