summaryrefslogtreecommitdiff
path: root/help/app
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-01-22 11:26:15 -0800
committerjessib <jessib@leap.se>2013-01-22 11:26:15 -0800
commit7cdb14e2a6584eb838945b00fe2840b3e8c211e3 (patch)
treef17f1f9ae355507357dcbf5dbde33985b4665cdd /help/app
parentd0bf43794c6385a6b746ce6ed4a3ba54fc891a30 (diff)
More minor cleanup of tickets controller
Diffstat (limited to 'help/app')
-rw-r--r--help/app/controllers/tickets_controller.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/help/app/controllers/tickets_controller.rb b/help/app/controllers/tickets_controller.rb
index 3ccebb3..bab795a 100644
--- a/help/app/controllers/tickets_controller.rb
+++ b/help/app/controllers/tickets_controller.rb
@@ -21,10 +21,9 @@ class TicketsController < ApplicationController
@ticket.email = current_user.email if logged_in? and current_user.email
flash[:notice] = 'Ticket was successfully created.' if @ticket.save
- if !logged_in?
- # cannot set this until ticket has been saved, as @ticket.id will not be set
- flash[:notice] += " " + t(:access_ticket_text, :full_url => request.protocol + request.host_with_port + ticket_path(@ticket.id))
- end
+
+ # cannot set this until ticket has been saved, as @ticket.id will not be set
+ flash[:notice] += " " + t(:access_ticket_text, :full_url => request.protocol + request.host_with_port + ticket_path(@ticket.id)) if !logged_in?
respond_with(@ticket)
end