app/models/spotlight/search.rb in blacklight-spotlight-0.11.0 vs app/models/spotlight/search.rb in blacklight-spotlight-0.12.0
- old
+ new
@@ -86,10 +86,10 @@
Spotlight::Engine.config.full_image_field
]
end
def should_generate_new_friendly_id?
- title_changed?
+ super || (title_changed? && persisted?)
end
alias_method :current_exhibit, :exhibit
end
end