Patch #2277 » new_setting-issue_startdate_is_adddate-r4249.diff
app/controllers/issues_controller.rb (working copy) | ||
---|---|---|
311 | 311 |
end |
312 | 312 |
end |
313 | 313 |
@issue.author = User.current |
314 |
@issue.start_date ||= Date.today |
|
314 |
if (request.get? || request.xhr?) && Setting.issue_startdate_is_adddate? |
|
315 |
@issue.start_date ||= Date.today |
|
316 |
end |
|
315 | 317 |
@priorities = IssuePriority.all |
316 | 318 |
@allowed_statuses = @issue.new_statuses_allowed_to(User.current, true) |
317 | 319 |
end |
app/views/settings/_issues.rhtml (working copy) | ||
---|---|---|
5 | 5 | |
6 | 6 |
<p><%= setting_check_box :display_subprojects_issues %></p> |
7 | 7 | |
8 |
<p><%= setting_check_box :issue_startdate_is_adddate %></p> |
|
9 | ||
8 | 10 |
<p><%= setting_select :issue_done_ratio, Issue::DONE_RATIO_OPTIONS.collect {|i| [l("setting_issue_done_ratio_#{i}"), i]} %></p> |
9 | 11 | |
10 | 12 |
<p><%= setting_text_field :issues_export_limit, :size => 6 %></p> |
config/settings.yml (working copy) | ||
---|---|---|
186 | 186 |
default: 0 |
187 | 187 |
default_notification_option: |
188 | 188 |
default: 'only_my_events' |
189 |
issue_startdate_is_adddate: |
|
190 |
default: 0 |
config/locales/en.yml (working copy) | ||
---|---|---|
351 | 351 |
setting_rest_api_enabled: Enable REST web service |
352 | 352 |
setting_cache_formatted_text: Cache formatted text |
353 | 353 |
setting_default_notification_option: Default notification option |
354 |
setting_issue_startdate_is_adddate: Use todays date as start date for new issues (otherwise leave empty, default) |
|
354 | 355 |
|
355 | 356 |
permission_add_project: Create project |
356 | 357 |
permission_add_subprojects: Create subprojects |