#289 open
Luca Guidi

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

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.

New-ticket Create new ticket

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.

People watching this ticket

Tags

You can update this ticket by sending an email to from your email client. (help)