Empty lazily loaded Text fields considered dirty
Reported by Jarkko Laine | June 4th, 2008 @ 03:28 AM | in 1.x
Preconditions:
- You have a model with Text fields that are lazily loaded.
- You have an object of the given model saved, with the text field empty.
What to do:
Try to go through a standard crud update action in merb, leaving the fields untouched, so that the text field is still empty.
What happens:
The text field is not loaded and the field is considered dirty. However, save will return false because in reality the object is unchanged. That will result in a catch-22 situation where the form is redisplayed without any error messages.
What should happen?
When the dirtiness of the text field is examined, the field value should be loaded and the field regarded as non-dirty.
Comments and changes to this ticket
-
Dan Kubb June 8th, 2008 @ 06:34 PM
- → Assigned user changed from Sam Smoot to Dan Kubb
- → State changed from new to open
- → Milestone changed from to 1.x
-
Adam French June 12th, 2008 @ 03:29 PM
- → Milestone cleared.
bernerd just pushed some dirty-tracking updates which may affect this ticket
-
Bernerd Schaefer June 12th, 2008 @ 03:39 PM
- → State changed from open to resolved
- → Milestone changed from to 1.x
I added a spec as of fb6389100ac97e836c3c89cfa1a954e8fe1b9f98 to confirm that this has been fixed on edge.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
