Skip to content

Commit

Permalink
typo on field type prevented links from showing
Browse files Browse the repository at this point in the history
  • Loading branch information
drusepth committed Dec 4, 2018
1 parent c16d5e8 commit 3f5ada6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/content/display/_sidelinks.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
next unless category[:fields].any? do |field|
(
# This is a link field AND it has existing links
field[:field_type] == 'link' && field[:old_column_source].present? && raw_model.send(field[:old_column_source]).any?
field[:type] == 'link' && field[:old_column_source].present? && raw_model.send(field[:old_column_source]).any?
) || field[:value].present?
# or: this is a text field with text in it
end
Expand Down

0 comments on commit 3f5ada6

Please sign in to comment.