prefenses page

This commit is contained in:
Eugene Korbut 2009-02-08 04:38:30 +10:00
parent 80dee7f4e7
commit 2afb9b559c
2 changed files with 2 additions and 4 deletions

View file

@ -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']