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

Containers of Duplicated Analyses are not found. #703

Merged

Conversation

nihadness
Copy link
Contributor

Current behavior before PR

When adding a Duplicate Analysis to a Worksheet, it saves RequestID instead of UID to 'container_uid' field.

Desired behavior after PR is merged

Set AR UID instead of ID.

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

Copy link
Member

@xispa xispa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small change required. Also, add an entry for this PR in CHANGES.rst

@@ -502,7 +502,7 @@ def _add_duplicate(self, src_analysis, destination_slot, refgid=None):
layout = self.getLayout()
dup_pos = {'position': destination_slot,
'type': 'd',
'container_uid': duplicate.getRequestID(),
'container_uid': duplicate.getRequest().UID(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xispa xispa merged commit ae74a20 into senaite:master Mar 6, 2018
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