From 2647bf507bce065a86d98b7b26973442089c0278 Mon Sep 17 00:00:00 2001 From: Gregor Schmidt Date: Wed, 3 Aug 2011 18:33:06 +0200 Subject: [PATCH] icon might be nil --- lib/widget/controls/query_name.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widget/controls/query_name.rb b/lib/widget/controls/query_name.rb index 3ddc6a3346..2ca3e5d185 100644 --- a/lib/widget/controls/query_name.rb +++ b/lib/widget/controls/query_name.rb @@ -18,7 +18,7 @@ class Widget::Controls::QueryName < Widget::Controls options["data-is_public"] = @subject.public? options["data-is_new"] = @subject.new_record? end - write(content_tag(:span, name, options) + icon) + write(content_tag(:span, name, options) + icon.to_s) end def translations