Project

General

Profile

Patch #2277 » new_setting-issue_startdate_is_adddate-r4214.diff

Bruno Medeiros, 2010-10-14 05:25

View differences:

app/controllers/issues_controller.rb (working copy)
307 307
      end
308 308
    end
309 309
    @issue.author = User.current
310
    @issue.start_date ||= Date.today
310
    if (request.get? || request.xhr?) && Setting.issue_startdate_is_adddate?
311
      @issue.start_date ||= Date.today
312
    end
311 313
    @priorities = IssuePriority.all
312 314
    @allowed_statuses = @issue.new_statuses_allowed_to(User.current, true)
313 315
  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)
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
(5-5/9)