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

View file

@ -11,7 +11,7 @@
<div id="tab_main">
<div id="tab_content">
<div id="prefs">
<form action="/webmail/webmail/prefs" method="post">
<form action="/webmail/prefs" method="post">
<%= hidden_field "mailpref", "id" %>
<%= hidden_field "mailpref", "customer_id" %>
<table class="edit">