Skip to content

Commit

Permalink
Fix missing field for sunspot
Browse files Browse the repository at this point in the history
  • Loading branch information
xhero committed Jul 13, 2021
1 parent 3d20fe7 commit 60bba35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/admin/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def update
user.get_roles.join(", ")
end
row I18n.t('notifications.notifications') do |r|
r.notifications.split(/\n+|\r+/).reject(&:empty?).join("<br>").html_safe
r.notifications ? r.notifications.split(/\n+|\r+/).reject(&:empty?).join("<br>").html_safe : ""
end
row I18n.t('notifications.cadence') do |r|
if !r.notification_type
Expand Down
4 changes: 2 additions & 2 deletions app/models/publication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ def reindex
id_for_fulltext
end

sunspot_dsl.string :name_order do
name
sunspot_dsl.string :short_name_order do
short_name
end
sunspot_dsl.text :short_name

Expand Down

0 comments on commit 60bba35

Please sign in to comment.