Asset search cause an internal server error
Reported by Luca Guidi | April 27th, 2009 @ 05:34 PM
When try to search for an asset from the "search" tab of the asset widget, an exception is raised by the server:
ActionView::TemplateError (undefined local variable or method `content' for #<ActionView::Base:0x32d8ff4>) on line #1 of vendor/plugins/adva_assets/app/views/admin/assets/widget/_asset.html.erb:
1: <li id="<%= dom_id(asset, prefix) %>" class="asset <%= prefix %>_asset <%= ' selected' if content and content.assets.include?(asset) %>">
2: <%= link_to asset_image_for(asset), asset.base_url %>
3: <div>
4: <a href="#"><%= image_tag('/images/adva_cms/icons/add.png', :size => '16x16', :id => dom_id(asset, "attach_#{prefix}"), :style => 'display:none', :class => 'attach_asset') %></a>
vendor/plugins/adva_assets/app/views/admin/assets/widget/_asset.html.erb:1
vendor/plugins/adva_assets/app/views/admin/assets/index.rjs:2:in `__instance_exec0'
vendor/plugins/adva_assets/app/views/admin/assets/index.rjs:1:in `_run_rjs_vendor47plugins47adva_assets47app47views47admin47assets47index46rjs'
vendor/plugins/adva_assets/app/controllers/admin/assets_controller.rb:13:in `index'
Comments and changes to this ticket
-
Marko Seppä June 19th, 2009 @ 10:21 AM
- → State changed from new to open
Added to prouct backlog.
-
Luca Guidi June 23rd, 2009 @ 11:33 AM
Fixed in http://github.com/svenfuchs/adva_cms/commit/b3495e98c42702b4b43d7a7...
There is still an issue open: the search results are totally unrelated with the query.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Cutting edge cms, blog, wiki, forum ... plattform.
Find the code on GitHub: adva cms
Part of the business application framework adva best.
