dirty fix for rendering bug

pull/6827/head
Philipp Tessenow 14 years ago
parent 09e84f06f1
commit 6d4570157e
  1. 3
      lib/widget/filters.rb
  2. 3
      lib/widget/settings.rb

@ -55,7 +55,8 @@ class Widget::Filters < Widget::Base
def render_filter(f_cls, f_inst)
f = f_inst || f_cls
html = render_widget Filters::Label, f
html = ''.html_safe
render_widget Filters::Label, f, :to => html
render_widget Filters::Operators, f, :to => html
if engine::Operator.string_operators.all? { |o| f_cls.available_operators.include? o }
render_widget Filters::TextBox, f, :to => html

@ -16,7 +16,8 @@ class Widget::Settings < Widget::Base
end
controls = content_tag :div, :class => "buttons form_controls" do
widgets = render_widget(Widget::Controls::Apply, @subject)
widgets = ''.html_safe
render_widget(Widget::Controls::Apply, @subject, :to => widgets)
render_widget(Widget::Controls::Save, @subject, :to => widgets,
:can_save => allowed_to?(:save, @subject, current_user))
render_widget(Widget::Controls::SaveAs, @subject, :to => widgets,

Loading…
Cancel
Save