Attachments in reports did not work correctly in combination with User LDM

Attachments in a report did not work correctly in combination with the User LDM. Report definitions that add data from the User LDM as an attachment to an email export were only added for one record. For multiple records, this no longer worked.