Open jasonnoble opened 6 years ago
Steps to reproduce:
story = project.create_story(name: 'Some story name') story.estimate = 3.0 story.save story.estimate # => 3.0 story.estimate = nil story.save story.estimate # => 3.0
I think the issue is:
https://gist.github.com/jasonnoble/80e618cf39874d26bdae884b4e79b33f#file-gistfile1-txt-L43 (works to set estimate to 3.0)
vs
https://gist.github.com/jasonnoble/80e618cf39874d26bdae884b4e79b33f#file-gistfile1-txt-L78 (does not include the request to set estimate to nil)
Did you try setting it to 0? I think there is an issue with the dirty tracking that doesn't handle nil correctly. This is just a guess. I need to investigate.
Steps to reproduce:
I think the issue is:
https://gist.github.com/jasonnoble/80e618cf39874d26bdae884b4e79b33f#file-gistfile1-txt-L43 (works to set estimate to 3.0)
vs
https://gist.github.com/jasonnoble/80e618cf39874d26bdae884b4e79b33f#file-gistfile1-txt-L78 (does not include the request to set estimate to nil)