Vote #71922
完了Saving new query without name causes escaping of input field
0%
説明
During saving new query without filled name is displayed validation error and name input field disappeares and is replaced by text:
After clicking on Save button the Firebug says "select is null" in file /javascripts/select_list_move.js on line 78.
My configuration:
- Ruby - 1.8.7
- Rails - 3.2.3
See attachment for details.
journals
--------------------------------------------------------------------------------
The following patch solves this issue:
<pre><code class="patch">
### Eclipse Workspace Patch 1.0
#P redmine
Index: config/initializers/10-patches.rb
===================================================================
--- config/initializers/10-patches.rb (revision 9707)
+++ config/initializers/10-patches.rb (working copy)
@@ -43,7 +43,7 @@
end
end
-ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| "#{html_tag}" }
+ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| html_tag || '' }
require 'mail'
</code></pre>
--------------------------------------------------------------------------------
Fixed in r9711. Etienne, thanks for digging into this.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------