CRUD module forgets user-entered values for fields for non-saved entities on validation error

Bug #598359 reported by AMcBain
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
play framework
Fix Committed
Undecided
Unassigned

Bug Description

Field such as:

 @ManyToOne
 public Media parent;

are rendered as selects in the entity editor pages. If a user changes the value of the select then submits the form and there is a validation error, when the form is reloaded the user-chosen value for the select is forgotten. The select will default to the first value again.

Tags: crud

Related branches

Revision history for this message
AMcBain (mcbain-asm) wrote :

This problem is only manifested in new entries. Ones which have already been saved to the database (and are being re-edited) do not seem to have this problem.

Revision history for this message
AMcBain (mcbain-asm) wrote :

An edit to this: it seems to also forget values for other fields as well. If an invalid date is entered, the original date value is forgotten and not put back into the form for the user to correct.

summary: - CRUD module forgets user-entered values for select-rendered fields on
- validation error
+ CRUD module forgets user-entered values for fields for non-saved
+ entities on validation error
Changed in play:
status: New → Fix Committed
milestone: none → 1.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.