Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicate metadata in single reports #108

Merged
merged 2 commits into from
Mar 18, 2021
Merged

Fix duplicate metadata in single reports #108

merged 2 commits into from
Mar 18, 2021

Conversation

ramonski
Copy link
Contributor

Description of the issue/feature this PR addresses

This PR fixes duplicate metadata when publishing mulitple single reports at once

Current behavior before PR

The "contained requests" metadata was always set to the UID of the last published report,
because the metadata dictionary was passed by reference for each report.

Desired behavior after PR is merged

A new metadata dictionary is created for each report with the correct contained sample UID inside

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

@xispa xispa merged commit 66c8963 into 2.x Mar 18, 2021
@xispa xispa deleted the fix-report-metadata branch March 18, 2021 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants