diff --git a/lib/widget/table.rb b/lib/widget/table.rb index cf9eeec6fc..5d075de5be 100644 --- a/lib/widget/table.rb +++ b/lib/widget/table.rb @@ -98,9 +98,10 @@ class Widget::Table < Widget::Base def render write("") - ret_val = render_widget(resolve_table, @subject, @options.reverse_merge(:to => @output)) if @subject.result.count <= 0 write(content_tag(:p, l(:label_no_data), :class => "nodata")) + else + render_widget(resolve_table, @subject, @options.reverse_merge(:to => @output)) end end end