Permalink
Browse files

Patching the resource_picker

  • Loading branch information...
1 parent a12c8c0 commit d93b148e32537adfc8acea81605cc875861b5b34 @willrjmarshall willrjmarshall committed Mar 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/app/views/shared/admin/_resource_picker.html.erb
@@ -7,7 +7,7 @@
:update_resource => "current_resource_#{field}",
:update_text => "current_resource_text_#{field}",
:callback => "resource_changed_#{field}",
- :field => [f.object_name, field].join('_'),
+ :field => [f.object_name.gsub(/\]\[|[^-a-zA-Z0-9:.]/, "_").sub(/_$/, ""), field].join('_'),
:current_link => "#{resource.url if resource.present?}",
:height => 480
})

0 comments on commit d93b148

Please sign in to comment.