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 Template select empties existing Sample Type-, Point- and Profile values in sample add form #2416

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

ramonski
Copy link
Contributor

@ramonski ramonski commented Nov 8, 2023

Description of the issue/feature this PR addresses

This PR fixes an issue in the Sample Add Form when a sample with an existing template is copied or when a template is selected after one of the following fields was set:

  • Sample Type
  • Sample Point
  • Profiles

Current behavior before PR

Existing values for SampleType, SamplePoint and AnalysisProfile fields are flushed

Desired behavior after PR is merged

Existing values for SampleType, SamplePoint and AnalysisProfile fields are retained

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

@ramonski ramonski requested a review from xispa November 8, 2023 12:04
@xispa xispa merged commit 4004f1a into 2.x Nov 8, 2023
@xispa xispa deleted the fix-template-overwrites-existing-fields-in-add-form branch November 8, 2023 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants