Skip to content

Commit

Permalink
[playframework#618] fixes CRUD which where broken in commit cb18ab7
Browse files Browse the repository at this point in the history
  • Loading branch information
mbknor committed Jun 11, 2011
1 parent 947c68c commit 4afce37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/crud/app/controllers/CRUD.java
Expand Up @@ -88,7 +88,7 @@ public static void save(String id) throws Exception {
notFoundIfNull(object);
Binder.bind(object, "object", params.all());
validation.valid(object);
if (Validation.hasErrors()) {
if (validation.hasErrors()) {
renderArgs.put("error", play.i18n.Messages.get("crud.hasErrors"));
try {
render(request.controller.replace(".", "/") + "/show.html", type, object);
Expand Down Expand Up @@ -125,7 +125,7 @@ public static void create() throws Exception {
Model object = (Model) constructor.newInstance();
Binder.bind(object, "object", params.all());
validation.valid(object);
if (Validation.hasErrors()) {
if (validation.hasErrors()) {
renderArgs.put("error", play.i18n.Messages.get("crud.hasErrors"));
try {
render(request.controller.replace(".", "/") + "/blank.html", type, object);
Expand Down

0 comments on commit 4afce37

Please sign in to comment.