summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-12-22 00:33:13 +0000
committerGo MAEDA <maeda@farend.jp>2023-12-22 00:33:13 +0000
commit081d6c37132891817a585e499d77b24988dc3edd (patch)
tree02f873c5f7862775a46a974591d0b57ac0d05a35 /app
parentdbd6db727236ed7a0d110b304186856b132d7c02 (diff)
downloadredmine-081d6c37132891817a585e499d77b24988dc3edd.tar.gz
redmine-081d6c37132891817a585e499d77b24988dc3edd.zip
Fix improper error highlighting for description field in issue form (#39795).
Patch by Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@22545 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/issues/_form.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/issues/_form.html.erb b/app/views/issues/_form.html.erb
index 3993b9ebf..b1693f7b3 100644
--- a/app/views/issues/_form.html.erb
+++ b/app/views/issues/_form.html.erb
@@ -32,7 +32,6 @@
<% if @issue.safe_attribute? 'description' %>
<p>
<%= f.label_for_field :description, :required => @issue.required_attribute?('description') %>
- <%= link_to_function content_tag(:span, l(:button_edit), :class => 'icon icon-edit'), '$(this).hide(); $("#issue_description_and_toolbar").show()' unless @issue.new_record? %>
<%= content_tag 'span', :id => "issue_description_and_toolbar", :style => (@issue.new_record? ? nil : 'display:none') do %>
<%= f.text_area :description, :cols => 60, :accesskey => accesskey(:edit), :class => 'wiki-edit',
:rows => [[10, @issue.description.to_s.length / 50].max, 20].min,
@@ -41,6 +40,7 @@
},
:no_label => true %>
<% end %>
+ <%= link_to_function content_tag(:span, l(:button_edit), :class => 'icon icon-edit'), '$(this).hide(); $("#issue_description_and_toolbar").show()' unless @issue.new_record? %>
</p>
<%= wikitoolbar_for 'issue_description', preview_issue_path(:project_id => @issue.project, :issue_id => @issue.id) %>
<% end %>