summaryrefslogtreecommitdiff
path: root/engines/support/app/views/tickets/new.html.haml
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-05-13 16:23:10 +0200
committerAzul <azul@riseup.net>2016-05-13 16:45:45 +0200
commit12e6c096088a8fb5947a854d2dd385156319b8a6 (patch)
tree4fb0e79ae15a17e8693f4fd660108a1e0632d0be /engines/support/app/views/tickets/new.html.haml
parentc52d6bb25702fafb60bf9d8dfb9c1afbd77062c0 (diff)
ensure invalid user ids still render the ticket form
We still have strange urls requested like /pt/users/AnonymousUser.../tickets/new Not sure where they are coming from - but this should make sure we respond with sth. meaningful instead of erroring out.
Diffstat (limited to 'engines/support/app/views/tickets/new.html.haml')
-rw-r--r--engines/support/app/views/tickets/new.html.haml5
1 files changed, 0 insertions, 5 deletions
diff --git a/engines/support/app/views/tickets/new.html.haml b/engines/support/app/views/tickets/new.html.haml
index d3580f9..d0b0f89 100644
--- a/engines/support/app/views/tickets/new.html.haml
+++ b/engines/support/app/views/tickets/new.html.haml
@@ -1,10 +1,5 @@
-- @show_navigation = params[:user_id].present?
-
= render 'tickets/tabs'
-- user = @user if admin?
-- user ||= current_user
-
= simple_form_for @ticket, :validate => true, :html => {:class => 'form-horizontal'} do |f|
= hidden_ticket_fields
= f.input :subject