This commit is contained in:
Andrew Brown 2021-04-17 20:20:16 -07:00
parent bbe8e8c06b
commit a9719b25ca
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class SerendipitousService < Service
fields_for_these_categories = AttributeField.where(
user: content.user,
field_type: ["text_area"],
field_type: "text_area",
hidden: [nil, false],
attribute_category_id: categories_for_this_type.pluck(:id)
)

View File

@ -50,6 +50,7 @@
<li><%= serialized_field[:value] %></li>
<% elsif serialized_field[:type] == "link" %>
<%=
#TODO: We should swap all the other field displays here with the new partials also
render partial: "content/display/attribute_value/link",
locals: { value: serialized_field[:value], content: content }
%>