mirror of
				https://github.com/redmine/redmine.git
				synced 2025-10-31 18:36:07 +01:00 
			
		
		
		
	Fixed that some input fields are escaped on validation failures (#11027).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9711 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
		| @@ -43,7 +43,7 @@ module ActionView | |||||||
|   end |   end | ||||||
| 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 || ''.html_safe } | ||||||
|  |  | ||||||
| require 'mail' | require 'mail' | ||||||
|  |  | ||||||
|   | |||||||
| @@ -149,6 +149,7 @@ class QueriesControllerTest < ActionController::TestCase | |||||||
|     end |     end | ||||||
|     assert_response :success |     assert_response :success | ||||||
|     assert_template 'new' |     assert_template 'new' | ||||||
|  |     assert_select 'input[name=?]', 'query[name]' | ||||||
|   end |   end | ||||||
|  |  | ||||||
|   def test_edit_global_public_query |   def test_edit_global_public_query | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user