fix acq.media release CSV export
This commit is contained in:
@@ -18,7 +18,7 @@ class AcquiredMediaRelease < ApplicationRecord
|
|||||||
|
|
||||||
class << self
|
class << self
|
||||||
def custom_csv_exportable_headers
|
def custom_csv_exportable_headers
|
||||||
%i[name file_infos_count]
|
%i[approved? name file_infos_count owner_info]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ module CsvExportable
|
|||||||
end
|
end
|
||||||
|
|
||||||
private
|
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)
|
def contact_info(name: nil, address: nil, phone: nil, email: nil)
|
||||||
contact_info = ''
|
contact_info = ''
|
||||||
|
|||||||
@@ -71,10 +71,6 @@ class LocationRelease < ApplicationRecord
|
|||||||
contact_info(name: name, address: address)
|
contact_info(name: name, address: address)
|
||||||
end
|
end
|
||||||
|
|
||||||
def owner_info
|
|
||||||
contact_info(name: person_name, address: person_address, phone: person_phone, email: person_email)
|
|
||||||
end
|
|
||||||
|
|
||||||
def amendment_signed_column
|
def amendment_signed_column
|
||||||
if amendment_signable?
|
if amendment_signable?
|
||||||
amendment_signed?
|
amendment_signed?
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ en:
|
|||||||
empty: Acquired Media Releases will appear here
|
empty: Acquired Media Releases will appear here
|
||||||
table_headers:
|
table_headers:
|
||||||
approved: Approved
|
approved: Approved
|
||||||
|
approved?: Approved
|
||||||
file_infos_count: No. Files
|
file_infos_count: No. Files
|
||||||
name: Name
|
name: Name
|
||||||
notes: Notes
|
notes: Notes
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ es:
|
|||||||
signed_at: Date Signed (ES)
|
signed_at: Date Signed (ES)
|
||||||
tags: Tags (ES)
|
tags: Tags (ES)
|
||||||
owner_info: Owner Info (ES)
|
owner_info: Owner Info (ES)
|
||||||
|
approved: Appproved?
|
||||||
activerecord:
|
activerecord:
|
||||||
attributes:
|
attributes:
|
||||||
appearance_release:
|
appearance_release:
|
||||||
|
|||||||
Reference in New Issue
Block a user