fix acq.media release CSV export
This commit is contained in:
@@ -18,7 +18,7 @@ class AcquiredMediaRelease < ApplicationRecord
|
||||
|
||||
class << self
|
||||
def custom_csv_exportable_headers
|
||||
%i[name file_infos_count]
|
||||
%i[approved? name file_infos_count owner_info]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -28,6 +28,9 @@ module CsvExportable
|
||||
end
|
||||
|
||||
private
|
||||
def owner_info
|
||||
contact_info(name: person_name, address: person_address, phone: person_phone, email: person_email)
|
||||
end
|
||||
|
||||
def contact_info(name: nil, address: nil, phone: nil, email: nil)
|
||||
contact_info = ''
|
||||
|
||||
@@ -71,10 +71,6 @@ class LocationRelease < ApplicationRecord
|
||||
contact_info(name: name, address: address)
|
||||
end
|
||||
|
||||
def owner_info
|
||||
contact_info(name: person_name, address: person_address, phone: person_phone, email: person_email)
|
||||
end
|
||||
|
||||
def amendment_signed_column
|
||||
if amendment_signable?
|
||||
amendment_signed?
|
||||
|
||||
Reference in New Issue
Block a user