Commit 59d9c667ac618063bd1b97727a3ccbba2913478d
1 parent
78f9202e
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
minor fixes
Showing
1 changed file
with
3 additions
and
5 deletions
Show diff stats
app/views/profile_editor/_person_form.html.erb
| ... | ... | @@ -133,15 +133,13 @@ |
| 133 | 133 | </span> |
| 134 | 134 | |
| 135 | 135 | <div class="formfield type-text" style="display: inline-block;"> |
| 136 | - <%= text_field_tag( "profile_data[custom_fields][#{key}][value]", @person.custom_fields[key][:value], :size => 30 ) %> | |
| 136 | + <% valor = @person.custom_fields[key] ? @person.custom_fields[key][value] : "" %> | |
| 137 | + <%= text_field_tag( "profile_data[custom_fields][#{key}][value]", valor, :size => 30 ) %> | |
| 137 | 138 | </div> |
| 138 | 139 | |
| 139 | 140 | </div> |
| 140 | 141 | |
| 141 | - <div class="field-privacy-selector"> | |
| 142 | - <input id="checkbox-44" name="" title="This field must be public" type="checkbox" value=""> | |
| 143 | - <label for="checkbox-44">Public</label> | |
| 144 | - </div> | |
| 142 | + <%= profile_field_privacy_selector @person, key %> | |
| 145 | 143 | |
| 146 | 144 | </div> |
| 147 | 145 | <% end %> | ... | ... |