#342 ✓resolved
Jarkko Laine

Empty lazily loaded Text fields considered dirty

Reported by Jarkko Laine | June 4th, 2008 @ 10:11 AM

Preconditions:

  1. You have a model with Text fields that are lazily loaded.
  2. 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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages