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

Show Batch title or ID in Sample reference field #2654

Merged
merged 4 commits into from
Dec 11, 2024

Conversation

ramonski
Copy link
Contributor

@ramonski ramonski commented Dec 4, 2024

Description of the issue/feature this PR addresses

This PR changes the displayed text of the sample batch reference field.

Current behavior before PR

The batch reference always shows the ID of the batch, e.g. B-001 instead, which is the internal used ID and has less expressiveness for the lab personell

Desired behavior after PR is merged

The sample batch reference shows the Title first and falls back to the ID if not set

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

@ramonski ramonski changed the title Show Batch title or ID in Sample referenced Show Batch title or ID in Sample reference field Dec 4, 2024
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.

Thanks!

@xispa xispa merged commit c4c08d4 into 2.x Dec 11, 2024
2 checks passed
@xispa xispa deleted the sample-batch-reference-show-title-or-id branch December 11, 2024 11:39
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