start date being filled with current date even when blank value is submitted
I'm using redmine 1.0.2 and experiencing a very annoying defect: every time I create a new issue, the start date is filled with the current date even if i leave this field blank.
I know #2269 is not implemented yet, but redmine should respect the blank value when I erase the default suggested value.
#2 Updated by Mischa The Evil almost 8 years ago
I was able to fix the issue by applying the following patch:
Index: app/controllers/issues_controller.rb =================================================================== --- app/controllers/issues_controller.rb (revision 4215) +++ app/controllers/issues_controller.rb (working copy) @@ -308,7 +308,9 @@ end end @issue.author = User.current - @issue.start_date ||= Date.today + if (request.get? || request.xhr?) + @issue.start_date ||= Date.today + end @priorities = IssuePriority.all @allowed_statuses = @issue.new_statuses_allowed_to(User.current, true) end