summaryrefslogtreecommitdiff
path: root/engines/support/app/controllers
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-05-29 20:11:29 +0200
committerAzul <azul@leap.se>2014-05-29 20:11:29 +0200
commit9e3be686ff2751707369894382293924420830d0 (patch)
tree7968e2be80d61f4938a7283d7a2fa0230da367a8 /engines/support/app/controllers
parent6a5e5edf54c76bea3de93475d949c3372d376a81 (diff)
fix flash for creating anonymous tickets
Diffstat (limited to 'engines/support/app/controllers')
-rw-r--r--engines/support/app/controllers/tickets_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/support/app/controllers/tickets_controller.rb b/engines/support/app/controllers/tickets_controller.rb
index 857d071..fab26f3 100644
--- a/engines/support/app/controllers/tickets_controller.rb
+++ b/engines/support/app/controllers/tickets_controller.rb
@@ -25,7 +25,9 @@ class TicketsController < ApplicationController
@ticket.created_by = current_user.id
flash_for @ticket
if @ticket.save && !logged_in?
- flash[:success] = t(:access_ticket_text, :full_url => ticket_url(@ticket.id))
+ flash[:success] += t 'tickets.access_ticket_text',
+ full_url: ticket_url(@ticket.id),
+ default: ""
end
respond_with @ticket, :location => auto_ticket_path(@ticket)
end