fixed some saves

This commit is contained in:
Fredrik Friis 2012-03-01 13:24:17 +09:00
parent 542cb2e2e7
commit bb784e61d9
2 changed files with 2 additions and 2 deletions
src/main/java/se/su/dsv/scipro/project

@ -96,7 +96,7 @@ public class ProjectPartnerPage extends ProjectPage {
ProjectPartner ex = (ProjectPartner) partnerForm.getModelObject();
ex.setProjectClass(selected);
// partnerForm.setDefaultModelObject(projectPartnerDao.save(ex));
projectPartnerDao.save(ex);
ex = projectPartnerDao.save(ex);
info("OK");
infoText.clearInput(); //clear the text area

@ -61,7 +61,7 @@ public class LogEntriesPanel extends Panel{
public void onClick(AjaxRequestTarget target) {
LogEntry toBeRemoved = logEntryDao.reLoad(logEntry);
toBeRemoved.setDeleted(true);
logEntryDao.save(toBeRemoved);
toBeRemoved = logEntryDao.save(toBeRemoved);
logEntryList.remove(toBeRemoved);
target.addComponent(logEntryListContainer);