prefenses page
This commit is contained in:
parent
80dee7f4e7
commit
2afb9b559c
2 changed files with 2 additions and 4 deletions
|
@ -194,9 +194,7 @@ class WebmailController < ApplicationController
|
|||
|
||||
def prefs
|
||||
@customer = Customer.find(logged_customer)
|
||||
if not(@mailpref = MailPref.find_by_customer(logged_customer))
|
||||
@mailpref = MailPref.create("customer_id"=>logged_customer)
|
||||
end
|
||||
@mailpref = MailPref.find_or_create_by_customer_id logged_customer
|
||||
|
||||
if params['op'] == _('Save')
|
||||
if params['customer']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue