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?
|
||||
|
||||
@@ -62,6 +62,7 @@ en:
|
||||
empty: Acquired Media Releases will appear here
|
||||
table_headers:
|
||||
approved: Approved
|
||||
approved?: Approved
|
||||
file_infos_count: No. Files
|
||||
name: Name
|
||||
notes: Notes
|
||||
|
||||
@@ -22,6 +22,7 @@ es:
|
||||
signed_at: Date Signed (ES)
|
||||
tags: Tags (ES)
|
||||
owner_info: Owner Info (ES)
|
||||
approved: Appproved?
|
||||
activerecord:
|
||||
attributes:
|
||||
appearance_release:
|
||||
|
||||
Reference in New Issue
Block a user