fixed some saves
This commit is contained in:
parent
70fa7bc5ac
commit
301c8dfcb7
src/main/java/se/su/dsv/scipro/data/controllers/impl
@ -90,7 +90,7 @@ public class CheckListControllerImpl implements CheckListController, IClusterabl
|
|||||||
clUpload.setFileName(upload.getClientFileName());
|
clUpload.setFileName(upload.getClientFileName());
|
||||||
clUpload = checkListUploadDao.save(clUpload);
|
clUpload = checkListUploadDao.save(clUpload);
|
||||||
checkList.setCheckListUpload(clUpload);
|
checkList.setCheckListUpload(clUpload);
|
||||||
checkListDao.save(checkList);
|
checkList = checkListDao.save(checkList);
|
||||||
return true;
|
return true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
//Something went wrong...
|
//Something went wrong...
|
||||||
@ -119,7 +119,7 @@ public class CheckListControllerImpl implements CheckListController, IClusterabl
|
|||||||
CheckList tmp = checkListUpload.getCheckList();
|
CheckList tmp = checkListUpload.getCheckList();
|
||||||
tmp.setCheckListUpload(null);
|
tmp.setCheckListUpload(null);
|
||||||
checkListUploadDao.delete(checkListUpload);
|
checkListUploadDao.delete(checkListUpload);
|
||||||
checkListDao.save(tmp);
|
tmp = checkListDao.save(tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ public class NotificationControllerImpl implements NotificationController {
|
|||||||
notification.setUser(usertoNotify);
|
notification.setUser(usertoNotify);
|
||||||
notification.setInfoText(notificationMessage.getWebNotificationMessage());
|
notification.setInfoText(notificationMessage.getWebNotificationMessage());
|
||||||
notification.setUrl(absoluteUrl);
|
notification.setUrl(absoluteUrl);
|
||||||
notificationDao.save(notification);
|
notification = notificationDao.save(notification);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user