Last active
July 20, 2017 07:02
-
-
Save Snowbridge/413e6bbbee4e9a5bfd45a8364ede4196 to your computer and use it in GitHub Desktop.
Makes the 'project' field on the 'New issue' form available
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From ffab03aa16eadab3f0a2a5d15ca45d01a1f7a709 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?=D0=9B=D0=B5=D0=B2=20=D0=A1=D0=B0=D0=B4=D0=BE=D0=B2=D1=81?= | |
=?UTF-8?q?=D0=BA=D0=B8=D0=B9?= <leo@sadovskie.com> | |
Date: Wed, 19 Jul 2017 16:23:02 +0300 | |
Subject: [PATCH 380/380] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20?= | |
=?UTF-8?q?=D0=B4=D0=BE=D1=81=D1=82=D1=83=D0=BF=D0=BD=D1=8B=D0=BC=20=D0=B4?= | |
=?UTF-8?q?=D0=BB=D1=8F=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D1=8F?= | |
=?UTF-8?q?=20=D0=BF=D0=BE=D0=BB=D0=B5=20"=D0=9F=D1=80=D0=BE=D0=B5=D0=BA?= | |
=?UTF-8?q?=D1=82"=20=D0=BF=D1=80=D0=B8=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0?= | |
=?UTF-8?q?=D0=BD=D0=B8=D0=B8=20=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=D0=B8.?= | |
MIME-Version: 1.0 | |
Content-Type: text/plain; charset=UTF-8 | |
Content-Transfer-Encoding: 8bit | |
--- | |
app/views/issues/_form.html.erb | 5 ++--- | |
1 file changed, 2 insertions(+), 3 deletions(-) | |
diff --git a/app/views/issues/_form.html.erb b/app/views/issues/_form.html.erb | |
index 011928db8..11a2f29c2 100644 | |
--- a/app/views/issues/_form.html.erb | |
+++ b/app/views/issues/_form.html.erb | |
@@ -1,7 +1,6 @@ | |
<%= labelled_fields_for :issue, @issue do |f| %> | |
<%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %> | |
<%= hidden_field_tag 'form_update_triggered_by', '' %> | |
-<%= hidden_field_tag 'back_url', params[:back_url], :id => nil if params[:back_url].present? %> | |
<% if @issue.safe_attribute? 'is_private' %> | |
<p id="issue_is_private_wrap"> | |
@@ -9,7 +8,7 @@ | |
</p> | |
<% end %> | |
-<% if (@issue.safe_attribute?('project_id') || @issue.project_id_changed?) && (!@issue.new_record? || @project.nil? || @issue.copy?) %> | |
+<% if (@issue.safe_attribute?('project_id') || @issue.project_id_changed?) %> | |
<p><%= f.select :project_id, project_tree_options_for_select(@issue.allowed_target_projects, :selected => @issue.project), {:required => true}, | |
:onchange => "updateIssueFrom('#{escape_javascript update_issue_form_path(@project, @issue)}', this)" %></p> | |
<% end %> | |
@@ -30,7 +29,7 @@ | |
<%= content_tag 'span', :id => "issue_description_and_toolbar", :style => (@issue.new_record? ? nil : 'display:none') do %> | |
<%= f.text_area :description, | |
:cols => 60, | |
- :rows => [[10, @issue.description.to_s.length / 50].max, 20].min, | |
+ :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), | |
:accesskey => accesskey(:edit), | |
:class => 'wiki-edit', | |
:no_label => true %> | |
-- | |
2.12.0.windows.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment