Mercurial > lada > lada-server
changeset 88:750e284adc65
Set success to false if the item can not be loaded (not found) by its id.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 07 Jun 2013 15:18:59 +0200 |
parents | 36b2191c3fcb |
children | 23ac762c46dc |
files | src/main/java/de/intevation/lada/data/Repository.java |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/data/Repository.java Fri Jun 07 15:18:23 2013 +0200 +++ b/src/main/java/de/intevation/lada/data/Repository.java Fri Jun 07 15:18:59 2013 +0200 @@ -70,6 +70,7 @@ T item = em.find(clazz, id); if (item == null) { this.setGeneralError(600); + this.setSuccess(false); } return item; }