diff --git a/app/models/concerns/has_attributes.rb b/app/models/concerns/has_attributes.rb index 389a1c03..dc5ecf66 100644 --- a/app/models/concerns/has_attributes.rb +++ b/app/models/concerns/has_attributes.rb @@ -9,6 +9,7 @@ module HasAttributes def self.attribute_categories(user, show_hidden: false) return [] if ['attribute_category', 'attribute_field'].include?(content_name) + # This doesn't work the way I think it does #return @cached_attribute_categories_for_this_content if @cached_attribute_categories_for_this_content # Always include the flatfile categories (but create AR versions if they don't exist) diff --git a/app/views/content/display/_sidelinks.html.erb b/app/views/content/display/_sidelinks.html.erb index b6dd79a4..7ff7a4fa 100644 --- a/app/views/content/display/_sidelinks.html.erb +++ b/app/views/content/display/_sidelinks.html.erb @@ -54,7 +54,6 @@ <%# for debugging: fields.map { |field| field.attribute_values.where(entity_id: content.id).map { |av| av.value } }.uniq %>