Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 904 → Rev 913

/sun/hostcaptain/trunk/src/ak/hostcaptain/core/action/MailboxAction.java
60,7 → 60,7
this, request, "ak.hostcaptain.core.form.MailboxEditForm");
 
if(boxId == null) {
 
showForm.set("enabled", new Boolean(true));
}
else {
Mailbox mailbox = MailboxManager.getInstance().get(boxId);
73,6 → 73,8
showForm.set("spamcheck", mailbox.getSpamCheck());
if(mailbox.getSystemUser() != null)
showForm.set("systemuser", StringConverter.toString(mailbox.getSystemUser().getId()));
showForm.set("enabled", mailbox.getEnabled());
showForm.set("comment", mailbox.getComment());
}
 
initLists(request);
124,6 → 126,9
if(password != null && !password.equals(""))
mailbox.setNewPassword(password);
 
mailbox.setEnabled((Boolean)theForm.get("enabled"));
mailbox.setComment((String)theForm.get("comment"));
 
MailboxManager.getInstance().save(mailbox);
response.sendRedirect(BackPath.findBackPath(request).getBackwardUrl());
return null;