Patch #2277 » ro2277-new_setting-issue_startdate_is_adddate-1.0.4.STABLE.4450.diff
app/controllers/issues_controller.rb (working copy) | ||
---|---|---|
300 | 300 |
render_error l(:error_no_tracker_in_project) |
301 | 301 |
return false |
302 | 302 |
end |
303 |
@issue.start_date ||= Date.today |
|
303 |
@issue.start_date ||= Date.today if Setting.issue_startdate_is_adddate?
|
|
304 | 304 |
if params[:issue].is_a?(Hash) |
305 | 305 |
@issue.safe_attributes = params[:issue] |
306 | 306 |
if User.current.allowed_to?(:add_issue_watchers, @project) && @issue.new_record? |
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) | ||
---|---|---|
184 | 184 |
default: '' |
185 | 185 |
rest_api_enabled: |
186 | 186 |
default: 0 |
187 |
issue_startdate_is_adddate: |
|
188 |
default: 0 |
config/locales/en.yml (working copy) | ||
---|---|---|
350 | 350 |
setting_start_of_week: Start calendars on |
351 | 351 |
setting_rest_api_enabled: Enable REST web service |
352 | 352 |
setting_cache_formatted_text: Cache formatted text |
353 |
setting_issue_startdate_is_adddate: Use todays date as start date for new issues (otherwise leave empty, default) |
|
353 | 354 |
|
354 | 355 |
permission_add_project: Create project |
355 | 356 |
permission_add_subprojects: Create subprojects |
config/locales/pt-BR.yml (working copy) | ||
---|---|---|
903 | 903 |
setting_rest_api_enabled: Habilitar REST web service |
904 | 904 |
label_missing_api_access_key: Chave de acesso a API faltando |
905 | 905 |
label_missing_feeds_access_key: Chave de acesso ao RSS faltando |
906 |
setting_issue_startdate_is_adddate: Usar data corrente como data inicial para novas tarefas (caso contrário não marcar, padrão) |
|
906 | 907 |
text_line_separated: Múltiplos valores permitidos (uma linha para cada valor). |
907 | 908 |
setting_mail_handler_body_delimiters: Truncar e-mails após uma destas linhas |
908 | 909 |
permission_add_subprojects: Criar subprojetos |