Feature #12704 » select_project.patch
app/models/issue.rb (working copy) | ||
---|---|---|
358 | 358 |
safe_attributes 'project_id', |
359 | 359 |
:if => lambda {|issue, user| |
360 | 360 |
if issue.new_record? |
361 |
issue.copy? |
|
361 |
Setting.new_issue_select_project? || issue.copy?
|
|
362 | 362 |
elsif user.allowed_to?(:move_issues, issue.project) |
363 | 363 |
Issue.allowed_target_projects_on_move.count > 1 |
364 | 364 |
end |
app/views/settings/_issues.html.erb (working copy) | ||
---|---|---|
7 | 7 | |
8 | 8 |
<p><%= setting_check_box :issue_group_assignment %></p> |
9 | 9 | |
10 |
<p><%= setting_check_box :new_issue_select_project %></p> |
|
11 | ||
10 | 12 |
<p><%= setting_check_box :default_issue_start_date_to_creation_date %></p> |
11 | 13 | |
12 | 14 |
<p><%= setting_check_box :display_subprojects_issues %></p> |
config/locales/en.yml (working copy) | ||
---|---|---|
397 | 397 |
setting_commit_logtime_activity_id: Activity for logged time |
398 | 398 |
setting_gantt_items_limit: Maximum number of items displayed on the gantt chart |
399 | 399 |
setting_issue_group_assignment: Allow issue assignment to groups |
400 |
setting_new_issue_select_project: Allow project selection for new issues |
|
400 | 401 |
setting_default_issue_start_date_to_creation_date: Use current date as start date for new issues |
401 | 402 |
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed |
402 | 403 |
setting_unsubscribe: Allow users to delete their own account |
config/settings.yml (working copy) | ||
---|---|---|
138 | 138 |
default: 'tree' |
139 | 139 |
issue_group_assignment: |
140 | 140 |
default: 0 |
141 |
new_issue_select_project: |
|
142 |
default: false |
|
141 | 143 |
default_issue_start_date_to_creation_date: |
142 | 144 |
default: 1 |
143 | 145 |
notified_events: |