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

fixed issue 20141 #20221

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dplumptre
Copy link

What does it do?

It fixes the issue #20141 which says A duplicated entry can be saved even if a unique field shares the same value as the original one #20141

Describe the technical changes you did.
Basically updated the function for the clone to validate a check if there is a unique field and stop it from saving.

Why is it needed?

If it is not done people will be submitting duplicated data of what is supposed to be unique

Describe the issue you are solving.

How to test it?

Provide information about the environment and the path to verify the behaviour.

Steps to reproduce the behavior
Create a Content-Type with a unique field in it
Create an entry and fill the unique field
Go to the List View
Duplicate the entry
Click "Save"
Expected behavior
I'm supposed to see an error on the unique field an not being able to save.

Related issue(s)/PR(s)

Let us know if this is related to any issue/pull request

Copy link

vercel bot commented Apr 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
contributor-docs ❌ Failed (Inspect) Apr 27, 2024 8:08pm

@strapi-cla
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Ademola plumptre seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To be reviewed
Development

Successfully merging this pull request may close these issues.

None yet

2 participants