Fix typo in default widget not showing objects in front end

This commit is contained in:
chris 2013-03-19 18:41:03 +08:00
parent ff30b3d05e
commit 37a38369e7
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class DefaultWidgetController< OrbitWidgetController
def default_widget
if !params[:id].blank?
redirect_to eval("#{@page_part.module_app.widget_fields_link_method['title']['method']}('#{params[:id]}', {inner: #{params[:inner] || true}})")
redirect_to eval("#{@page_part.module_app.widget_fields_link_method[:title][:method]}('#{params[:id]}', {inner: #{params[:inner] || true}})")
else
@tag_class = nil
@default_widget = @page_part.module_app.get_default_widget