From 41eb99ce5a3b9a8ef5146c0ad33aa88d6ea292bd Mon Sep 17 00:00:00 2001 From: mfo Date: Fri, 19 Jul 2024 12:00:23 +0200 Subject: [PATCH] fix(dossier_projection_service.rb): do not fwd internal id_value_h to the view by deep duping fields --- app/services/dossier_projection_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/dossier_projection_service.rb b/app/services/dossier_projection_service.rb index e7680f936..92089b1e6 100644 --- a/app/services/dossier_projection_service.rb +++ b/app/services/dossier_projection_service.rb @@ -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' }