diff options
author | Etienne Massip <etienne.massip@gmail.com> | 2011-11-05 18:40:33 +0000 |
---|---|---|
committer | Etienne Massip <etienne.massip@gmail.com> | 2011-11-05 18:40:33 +0000 |
commit | 269014ced887bbbe96dc9d07a4885e7d1005da6b (patch) | |
tree | 9b92dd6cc975a62b88ecd8c4f3e1dec313317933 /app/controllers/issues_controller.rb | |
parent | 32848639042b195132b52caed3c02682bf7128c7 (diff) | |
download | redmine-269014ced887bbbe96dc9d07a4885e7d1005da6b.tar.gz redmine-269014ced887bbbe96dc9d07a4885e7d1005da6b.zip |
Added an administration setting to allow issue start date to be defaulted to blank (nil) at issue creation (#2269).
Based on the patch of #2277 contributed by Mischa The Evil.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7733 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r-- | app/controllers/issues_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index af44e3c19..d782a7965 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -314,7 +314,7 @@ private render_error l(:error_no_tracker_in_project) return false end - @issue.start_date ||= Date.today + @issue.start_date ||= Date.today if Setting.default_issue_start_date_to_creation_date? if params[:issue].is_a?(Hash) @issue.safe_attributes = params[:issue] if User.current.allowed_to?(:add_issue_watchers, @project) && @issue.new_record? |