summaryrefslogtreecommitdiff
path: root/engines/support/app/views/tickets/index.html.haml
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-04-22 14:43:19 +0200
committerAzul <azul@leap.se>2014-04-24 20:36:11 +0200
commit7df11eed6aa48d1f61ee7f3700295c78b62358f0 (patch)
tree39418a3103406d6a30fb6ef2e4ef6f80515476b7 /engines/support/app/views/tickets/index.html.haml
parentc5c54ec2035813949a81e8b5977a8f2538897260 (diff)
check user_id param for present? instead of !nil?
when rendered from teh create action due to an error user_id param will sometimes be an empty string. We should still avoid rendering the navigation because the path's can not be resolved without a user_id.
Diffstat (limited to 'engines/support/app/views/tickets/index.html.haml')
-rw-r--r--engines/support/app/views/tickets/index.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/support/app/views/tickets/index.html.haml b/engines/support/app/views/tickets/index.html.haml
index c02a326..a4df6e3 100644
--- a/engines/support/app/views/tickets/index.html.haml
+++ b/engines/support/app/views/tickets/index.html.haml
@@ -1,4 +1,4 @@
-- @show_navigation = !params[:user_id].nil?
+- @show_navigation = params[:user_id].present?
= render 'tickets/tabs'