summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-06 23:23:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-06 23:23:02 +0000
commit1c047dfeb80c0f70de6c9e15d564a5af7f859c45 (patch)
tree070275e35912994fb980229e48962c3473ca9dbb /app/controllers
parent7f9d2b080416132e0357bf3b95f6fa60082ba10b (diff)
downloadredmine-1c047dfeb80c0f70de6c9e15d564a5af7f859c45.tar.gz
redmine-1c047dfeb80c0f70de6c9e15d564a5af7f859c45.zip
Fixed: start date being filled with current date even when blank value is submitted (#6575).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4378 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/issues_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 799352218..641847729 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -304,6 +304,7 @@ private
render_error l(:error_no_tracker_in_project)
return false
end
+ @issue.start_date ||= Date.today
if params[:issue].is_a?(Hash)
@issue.safe_attributes = params[:issue]
if User.current.allowed_to?(:add_issue_watchers, @project) && @issue.new_record?
@@ -311,7 +312,6 @@ private
end
end
@issue.author = User.current
- @issue.start_date ||= Date.today
@priorities = IssuePriority.all
@allowed_statuses = @issue.new_statuses_allowed_to(User.current, true)
end