
Empty lazily loaded Text fields considered dirty
Reported by Jarkko Laine | June 4th, 2008 @ 10:11 AM
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 (dkubb) June 8th, 2008 @ 06:34 PM
- Milestone cleared.
- State changed from new to open
- Assigned user changed from Sam Smoot to Dan Kubb (dkubb)
-
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
- Milestone cleared.
- State changed from open to resolved
I added a spec as of fb6389100ac97e836c3c89cfa1a954e8fe1b9f98 to confirm that this has been fixed on edge.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »