@@ -228,6 +228,7 class IssuesController < ApplicationController | |||
|
228 | 228 | @assignables = target_projects.map(&:assignable_users).inject{|memo,a| memo & a} |
|
229 | 229 | @trackers = target_projects.map(&:trackers).inject{|memo,t| memo & t} |
|
230 | 230 | |
|
231 | @safe_attributes = @issues.map(&:safe_attribute_names).inject {|memo,attrs| memo & attrs} | |
|
231 | 232 | render :layout => false if request.xhr? |
|
232 | 233 | end |
|
233 | 234 |
@@ -69,6 +69,14 | |||
|
69 | 69 | </div> |
|
70 | 70 | |
|
71 | 71 | <div class="splitcontentright"> |
|
72 | <% if @safe_attributes.include?('is_private') %> | |
|
73 | <p> | |
|
74 | <label for='issue_is_private'><%= l(:field_is_private) %></label> | |
|
75 | <%= select_tag('issue[is_private]', content_tag('option', l(:label_no_change_option), :value => '') + | |
|
76 | content_tag('option', l(:general_text_Yes), :value => '1') + | |
|
77 | content_tag('option', l(:general_text_No), :value => '0')) %> | |
|
78 | </p> | |
|
79 | <% end %> | |
|
72 | 80 | <% if @project && User.current.allowed_to?(:manage_subtasks, @project) %> |
|
73 | 81 | <p> |
|
74 | 82 | <label for='issue_parent_issue_id'><%= l(:field_parent_issue) %></label> |
General Comments 0
You need to be logged in to leave comments.
Login now