Patch #2277 » patch-2277_new_setting-issue_startdate_is_adddate-1.1.0.diff
redmine-1.1//app/controllers/issues_controller.rb 2011-10-17 13:34:02.455445482 +0200 | ||
---|---|---|
290 | 290 |
render_error l(:error_no_tracker_in_project) |
291 | 291 |
return false |
292 | 292 |
end |
293 |
@issue.start_date ||= Date.today |
|
293 |
@issue.start_date ||= Date.today if Setting.issue_startdate_is_adddate?
|
|
294 | 294 |
if params[:issue].is_a?(Hash) |
295 | 295 |
@issue.safe_attributes = params[:issue] |
296 | 296 |
if User.current.allowed_to?(:add_issue_watchers, @project) && @issue.new_record? |
redmine-1.1//app/views/settings/_issues.rhtml 2011-10-17 13:34:02.455445482 +0200 | ||
---|---|---|
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> |
redmine-1.1//config/locales/de.yml 2011-10-17 14:05:26.309131264 +0200 | ||
---|---|---|
368 | 368 |
setting_start_of_week: Wochenanfang |
369 | 369 |
setting_rest_api_enabled: REST-Schnittstelle aktivieren |
370 | 370 |
setting_cache_formatted_text: Formatierten Text im Cache speichern |
371 |
setting_issue_startdate_is_adddate: Aktuelles Datum als Startdatum für neue Tickets nutzen (sonst leer lassen) |
|
371 | 372 | |
372 | 373 |
permission_add_project: Projekt erstellen |
373 | 374 |
permission_add_subprojects: Unterprojekte erstellen |
redmine-1.1//config/locales/en.yml 2011-10-17 13:55:48.651248376 +0200 | ||
---|---|---|
358 | 358 |
setting_start_of_week: Start calendars on |
359 | 359 |
setting_rest_api_enabled: Enable REST web service |
360 | 360 |
setting_cache_formatted_text: Cache formatted text |
361 |
setting_issue_startdate_is_adddate: Use todays date as start date for new issues (otherwise leave empty, default) |
|
361 | 362 |
setting_default_notification_option: Default notification option |
362 | 363 |
setting_commit_logtime_enabled: Enable time logging |
363 | 364 |
setting_commit_logtime_activity_id: Activity for logged time |
redmine-1.1//config/locales/pt-BR.yml 2011-10-17 13:34:02.456445366 +0200 | ||
---|---|---|
902 | 902 |
setting_rest_api_enabled: Habilitar REST web service |
903 | 903 |
label_missing_api_access_key: Chave de acesso a API faltando |
904 | 904 |
label_missing_feeds_access_key: Chave de acesso ao RSS faltando |
905 |
setting_issue_startdate_is_adddate: Usar data corrente como data inicial para novas tarefas (caso contrário não marcar, padrão) |
|
905 | 906 |
text_line_separated: Múltiplos valores permitidos (uma linha para cada valor). |
906 | 907 |
setting_mail_handler_body_delimiters: Truncar e-mails após uma destas linhas |
907 | 908 |
permission_add_subprojects: Criar subprojetos |
redmine-1.1//config/settings.yml 2011-10-17 13:44:31.937691562 +0200 | ||
---|---|---|
192 | 192 |
default: '' |
193 | 193 |
rest_api_enabled: |
194 | 194 |
default: 0 |
195 |
issue_startdate_is_adddate: |
|
196 |
default: 0 |
|
195 | 197 |
default_notification_option: |
196 | 198 |
default: 'only_my_events' |
197 | 199 |
emails_header: |