prefenses page
This commit is contained in:
parent
80dee7f4e7
commit
2afb9b559c
|
@ -194,9 +194,7 @@ class WebmailController < ApplicationController
|
||||||
|
|
||||||
def prefs
|
def prefs
|
||||||
@customer = Customer.find(logged_customer)
|
@customer = Customer.find(logged_customer)
|
||||||
if not(@mailpref = MailPref.find_by_customer(logged_customer))
|
@mailpref = MailPref.find_or_create_by_customer_id logged_customer
|
||||||
@mailpref = MailPref.create("customer_id"=>logged_customer)
|
|
||||||
end
|
|
||||||
|
|
||||||
if params['op'] == _('Save')
|
if params['op'] == _('Save')
|
||||||
if params['customer']
|
if params['customer']
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<div id="tab_main">
|
<div id="tab_main">
|
||||||
<div id="tab_content">
|
<div id="tab_content">
|
||||||
<div id="prefs">
|
<div id="prefs">
|
||||||
<form action="/webmail/webmail/prefs" method="post">
|
<form action="/webmail/prefs" method="post">
|
||||||
<%= hidden_field "mailpref", "id" %>
|
<%= hidden_field "mailpref", "id" %>
|
||||||
<%= hidden_field "mailpref", "customer_id" %>
|
<%= hidden_field "mailpref", "customer_id" %>
|
||||||
<table class="edit">
|
<table class="edit">
|
||||||
|
|
Loading…
Reference in a new issue