fix(dossier_projection_service.rb): do not fwd internal id_value_h to the view by deep duping fields

This commit is contained in:
mfo 2024-07-19 12:00:23 +02:00
parent b3cb3e974e
commit 41eb99ce5a
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC

View file

@ -39,6 +39,7 @@ class DossierProjectionService
# - the order of the intermediary query results are unknown
# - some values can be missing (if a revision added or removed them)
def self.project(dossiers_ids, fields)
fields = fields.deep_dup
state_field = { TABLE => 'self', COLUMN => 'state' }
archived_field = { TABLE => 'self', COLUMN => 'archived' }
batch_operation_field = { TABLE => 'self', COLUMN => 'batch_operation_id' }