first working version
This commit is contained in:
@@ -220,6 +220,8 @@ public class Rest extends HttpServlet {
|
||||
var map = new HashMap<>();
|
||||
if (list.hasState(MailingList.STATE_FORWARD_FROM)) map.put("forward_from",true);
|
||||
if (list.hasState(MailingList.STATE_FORWARD_ATTACHED)) map.put("forward_attached",true);
|
||||
if (list.hasState(MailingList.STATE_HIDE_RECEIVERS)) map.put("hide_receivers",true);
|
||||
if (list.hasState(MailingList.STATE_REPLY_TO_LIST)) map.put("reply_to_list",true);
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
@@ -291,6 +291,8 @@ public class Web extends TemplateServlet {
|
||||
try {
|
||||
list.forwardFrom(Util.getCheckbox(req, "forward_from"));
|
||||
list.forwardAttached(Util.getCheckbox(req, "forward_attached"));
|
||||
list.hideReceivers(Util.getCheckbox(req, "hide_receivers"));
|
||||
list.replyToList(Util.getCheckbox(req, "reply_to_list"));
|
||||
data.put(NOTES,t("Sucessfully updated MailingList!"));
|
||||
} catch (SQLException e){
|
||||
LOG.warn("Failed to update MailingList:",e);
|
||||
|
||||
Reference in New Issue
Block a user