summaryrefslogtreecommitdiff
path: root/help/app
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-02-05 12:46:01 -0800
committerjessib <jessib@leap.se>2013-02-05 12:46:01 -0800
commit215e046768cf10d6f1718cf5a46823ac91b013db (patch)
treea48dbacfbdc776814bc634009609bac0864a47d8 /help/app
parent7636f238a0acb03a470ddf36b720a45c7f50c659 (diff)
Tweaks because user attribute is now email_address, not email
Diffstat (limited to 'help/app')
-rw-r--r--help/app/controllers/tickets_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/help/app/controllers/tickets_controller.rb b/help/app/controllers/tickets_controller.rb
index d5a3da7..6562048 100644
--- a/help/app/controllers/tickets_controller.rb
+++ b/help/app/controllers/tickets_controller.rb
@@ -18,7 +18,7 @@ class TicketsController < ApplicationController
@ticket.comments.last.posted_by = (logged_in? ? current_user.id : nil) #protecting posted_by isn't working, so this should protect it.
@ticket.created_by = current_user.id if logged_in?
- @ticket.email = current_user.email if logged_in? and current_user.email
+ @ticket.email = current_user.email_address if logged_in? and current_user.email_address
flash[:notice] = 'Ticket was successfully created.' if @ticket.save