Project

General

Profile

Patch #2277 » ro2277-new_setting-issue_startdate_is_adddate-r4425.diff

Updated patch against trunk at r4425 - Mischa The Evil, 2010-12-02 03:13

View differences:

app/controllers/issues_controller.rb (working copy)
294 294
      render_error l(:error_no_tracker_in_project)
295 295
      return false
296 296
    end
297
    @issue.start_date ||= Date.today
297
    @issue.start_date ||= Date.today if Setting.issue_startdate_is_adddate?
298 298
    if params[:issue].is_a?(Hash)
299 299
      @issue.safe_attributes = params[:issue]
300 300
      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)
186 186
  default: 0
187 187
default_notification_option:
188 188
  default: 'only_my_events'
189
issue_startdate_is_adddate:
190
  default: 0
189 191
emails_header:
190 192
  default: ''
config/locales/en.yml (working copy)
354 354
  setting_rest_api_enabled: Enable REST web service
355 355
  setting_cache_formatted_text: Cache formatted text
356 356
  setting_default_notification_option: Default notification option
357
  setting_issue_startdate_is_adddate: Use todays date as start date for new issues (otherwise leave empty, default)
357 358
  
358 359
  permission_add_project: Create project
359 360
  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
(6-6/9)