From 59d9c667ac618063bd1b97727a3ccbba2913478d Mon Sep 17 00:00:00 2001 From: Francisco Marcelo de Araújo Lima Júnior Date: Thu, 28 Aug 2014 19:27:56 -0300 Subject: [PATCH] minor fixes --- app/views/profile_editor/_person_form.html.erb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/views/profile_editor/_person_form.html.erb b/app/views/profile_editor/_person_form.html.erb index 507b7c4..7352ea8 100644 --- a/app/views/profile_editor/_person_form.html.erb +++ b/app/views/profile_editor/_person_form.html.erb @@ -133,15 +133,13 @@
- <%= text_field_tag( "profile_data[custom_fields][#{key}][value]", @person.custom_fields[key][:value], :size => 30 ) %> + <% valor = @person.custom_fields[key] ? @person.custom_fields[key][value] : "" %> + <%= text_field_tag( "profile_data[custom_fields][#{key}][value]", valor, :size => 30 ) %>
-
- - -
+ <%= profile_field_privacy_selector @person, key %> <% end %> -- libgit2 0.21.2