Patch #2277 » ro2277-new_setting-issue_startdate_is_adddate-r4425.diff
| app/controllers/issues_controller.rb (working copy) | ||
|---|---|---|
|
render_error l(:error_no_tracker_in_project)
|
||
|
return false
|
||
|
end
|
||
|
@issue.start_date ||= Date.today
|
||
|
@issue.start_date ||= Date.today if Setting.issue_startdate_is_adddate?
|
||
|
if params[:issue].is_a?(Hash)
|
||
|
@issue.safe_attributes = params[:issue]
|
||
|
if User.current.allowed_to?(:add_issue_watchers, @project) && @issue.new_record?
|
||
| app/views/settings/_issues.rhtml (working copy) | ||
|---|---|---|
|
|
||
|
<p><%= setting_check_box :display_subprojects_issues %></p>
|
||
|
|
||
|
<p><%= setting_check_box :issue_startdate_is_adddate %></p>
|
||
|
|
||
|
<p><%= setting_select :issue_done_ratio, Issue::DONE_RATIO_OPTIONS.collect {|i| [l("setting_issue_done_ratio_#{i}"), i]} %></p>
|
||
|
|
||
|
<p><%= setting_text_field :issues_export_limit, :size => 6 %></p>
|
||
| config/settings.yml (working copy) | ||
|---|---|---|
|
default: 0
|
||
|
default_notification_option:
|
||
|
default: 'only_my_events'
|
||
|
issue_startdate_is_adddate:
|
||
|
default: 0
|
||
|
emails_header:
|
||
|
default: ''
|
||
| config/locales/en.yml (working copy) | ||
|---|---|---|
|
setting_rest_api_enabled: Enable REST web service
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
setting_default_notification_option: Default notification option
|
||
|
setting_issue_startdate_is_adddate: Use todays date as start date for new issues (otherwise leave empty, default)
|
||
|
|
||
|
permission_add_project: Create project
|
||
|
permission_add_subprojects: Create subprojects
|
||
| config/locales/pt-BR.yml (working copy) | ||
|---|---|---|
|
setting_rest_api_enabled: Habilitar REST web service
|
||
|
label_missing_api_access_key: Chave de acesso a API faltando
|
||
|
label_missing_feeds_access_key: Chave de acesso ao RSS faltando
|
||
|
setting_issue_startdate_is_adddate: Usar data corrente como data inicial para novas tarefas (caso contr?rio n?o marcar, padr?o)
|
||
|
text_line_separated: M?ltiplos valores permitidos (uma linha para cada valor).
|
||
|
setting_mail_handler_body_delimiters: Truncar e-mails ap?s uma destas linhas
|
||
|
permission_add_subprojects: Criar subprojetos
|
||