プロジェクト

全般

プロフィール

Vote #71922

完了

Saving new query without name causes escaping of input field

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Issues_2
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
2
version_id:
49
issue_org_id:
11027
author_id:
56614
assigned_to_id:
0
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
43
ステータス-->[Closed]

説明

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.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリIssues_2 にセット
  • 対象バージョン2.0.1_49 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0