Defect #6575
closed
start date being filled with current date even when blank value is submitted
Added by Bruno Medeiros over 14 years ago.
Updated over 11 years ago.
Description
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.
Oh, this bug happens even here, I deleted the date when created this issue and it's filled now. :P
I can confirm this issue on trunk at r4215. It seems introduced during the IssuesController
-refactoring in r3688 followed by r3689.
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
Thanks for the patch, but I decided to apply the #2277 instead. I fixes the problem and makes what my company want.
- Status changed from New to Resolved
- Target version set to 1.0.4
- Resolution set to Fixed
- Status changed from Resolved to Closed
Merged in 1.0-stable in r4398.
I am facing this issue in Redmine 2.3x versiom.
Also available in: Atom
PDF