diff --git a/app/views/content/form/_text_input.html.erb b/app/views/content/form/_text_input.html.erb index 92ca930e..a15cb98d 100644 --- a/app/views/content/form/_text_input.html.erb +++ b/app/views/content/form/_text_input.html.erb @@ -6,7 +6,7 @@ if f.object.respond_to?(field.name.to_sym) value = f.object.send(field.name.to_sym) else - value = Attribute.where(user: @content.user, attribute_field: field, entity: f.object).first + value = Attribute.where(user: current_user, attribute_field: field, entity: f.object).first end %>