CRUD puts static fields in edit page
Bug #534424 reported by
Leo Jay
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
play framework | Status tracked in 1.0 | |||||
1.0 |
Fix Released
|
Medium
|
Nicolas Leroux | |||
1.1 |
Fix Committed
|
Medium
|
Nicolas Leroux |
Bug Description
create a simple model like this:
package models;
import play.db.jpa.Model;
import javax.persisten
@Entity
public class TestModel extends Model {
public static final int MAX_VALUE = 100;
public int value;
}
in the CRUD add and edit page, the MAX_VALUE field is in the editable fields list.
To post a comment you must log in.
Thanks for the patch. For the record, I used the isFinal instead, because you might want to modify static field if it is not a JPA entity for example. A final field cannot be modified and therefore should not been shown.