Patch #7443 » collision-1.1.0.patch
| redmine/app/controllers/issue_moves_controller.rb 2011-01-26 10:42:19.865224800 -0700 | ||
|---|---|---|
|
@target_project ||= @project
|
||
|
@trackers = @target_project.trackers
|
||
|
@available_statuses = Workflow.available_statuses(@project)
|
||
|
@found_versions = @target_project.shared_versions.locked
|
||
|
@fixed_versions = @target_project.shared_versions.open
|
||
|
@categories = @target_project.issue_categories
|
||
|
@notes = params[:notes]
|
||
| ... | ... | |
|
|
||
|
def extract_changed_attributes_for_move(params)
|
||
|
changed_attributes = {}
|
||
|
[:assigned_to_id, :status_id, :fixed_version_id, :category_id, :start_date, :due_date, :priority_id].each do |valid_attribute|
|
||
|
[:assigned_to_id, :status_id, :found_version_id, :fixed_version_id, :category_id, :start_date, :due_date, :priority_id].each do |valid_attribute|
|
||
|
unless params[valid_attribute].blank?
|
||
|
changed_attributes[valid_attribute] = (params[valid_attribute] == 'none' ? nil : params[valid_attribute])
|
||
|
end
|
||
| redmine/app/models/issue.rb 2011-01-26 13:52:35.180526800 -0700 | ||
|---|---|---|
|
safe_attributes 'tracker_id',
|
||
|
'status_id',
|
||
|
'category_id',
|
||
|
'found_version_id',
|
||
|
'custom_field_values',
|
||
|
'custom_fields',
|
||
|
'lock_version',
|
||
| ... | ... | |
|
|
||
|
safe_attributes 'assigned_to_id',
|
||
|
'priority_id',
|
||
|
'found_version_id',
|
||
|
'fixed_version_id',
|
||
|
'start_date',
|
||
|
'due_date',
|
||
| redmine/app/views/issues/_attributes.rhtml 2011-01-26 10:38:30.757316100 -0700 | ||
|---|---|---|
|
:title => l(:label_issue_category_new),
|
||
|
:tabindex => 199) if authorize_for('issue_categories', 'new') %></p>
|
||
|
<% end %>
|
||
|
<% unless @issue.assignable_versions.empty? %>
|
||
|
<p><%= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version), {:include_blank => true}, :disabled => !@issue.planning_editable? %>
|
||
|
<% unless @issue.found_assignable_versions.empty? %>
|
||
|
<p><%= f.select :found_version_id, version_options_for_select(@issue.found_assignable_versions, @issue.found_version), :include_blank => true, :required => true %></p>
|
||
|
<% end %>
|
||
|
<% unless @issue.fixed_assignable_versions.empty? %>
|
||
|
<p><%= f.select :fixed_version_id, version_options_for_select(@issue.fixed_assignable_versions, @issue.fixed_version), {:include_blank => true}, :disabled => !@issue.planning_editable? %>
|
||
|
<%= prompt_to_remote(image_tag('add.png', :style => 'vertical-align: middle;'),
|
||
|
l(:label_version_new),
|
||
|
'version[name]',
|
||
| redmine/app/views/issues/_form_update.rhtml 2011-01-26 13:20:38.507558100 -0700 | ||
|---|---|---|
|
<% if Issue.use_field_for_done_ratio? %>
|
||
|
<p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10]}), {}, :disabled => !@issue.progress_editable? %></p>
|
||
|
<% end %>
|
||
|
<% unless @issue.assignable_versions.empty? %>
|
||
|
<p><%= f.select :fixed_version_id, (@issue.assignable_versions.collect {|v| [v.name, v.id]}), {:include_blank => true}, :disabled => !@issue.planning_editable? %></p>
|
||
|
<% unless @issue.fixed_assignable_versions.empty? %>
|
||
|
<p><%= f.select :fixed_version_id, (@issue.fixed_assignable_versions.collect {|v| [v.name, v.id]}), {:include_blank => true}, :disabled => !@issue.planning_editable? %></p>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
</div>
|
||