mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Fix Universe names upon export
This commit is contained in:
parent
06ffb6c943
commit
46e33299ea
@ -142,7 +142,7 @@ class ExportController < ApplicationController
|
||||
if value.is_a?(ActiveRecord::Associations::CollectionProxy)
|
||||
value = value.map(&:name).to_sentence
|
||||
elsif attr.name.end_with?('_id') && value.present?
|
||||
universe = Universe.where(id: value.to_i)
|
||||
universe = Universe.where(id: value.to_i).first
|
||||
value = universe.name if universe
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user