From 5ab277dda9103e8318081034c3ed15a962bcbe23 Mon Sep 17 00:00:00 2001 From: Xavier J Date: Thu, 1 Dec 2016 10:59:42 +0100 Subject: [PATCH] Fix dropdown list partial render --- app/views/users/description/champs/_drop_down_list.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/users/description/champs/_drop_down_list.html.haml b/app/views/users/description/champs/_drop_down_list.html.haml index b4b6927f0..e398f6519 100644 --- a/app/views/users/description/champs/_drop_down_list.html.haml +++ b/app/views/users/description/champs/_drop_down_list.html.haml @@ -1 +1,2 @@ -= render partial: 'users/description/champs/drop_down_template', locals: {values: champ.drop_down_list.options, champ: champ} +- unless champ.drop_down_list.nil? + = render partial: 'users/description/champs/drop_down_template', locals: {values: champ.drop_down_list.options, champ: champ}