fixed some saves
This commit is contained in:
parent
542cb2e2e7
commit
bb784e61d9
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user