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

[5.x]: Field validation on required fields doesn't work when enabling entry for different site #16505

Open
WHITE-developer opened this issue Jan 23, 2025 · 1 comment
Assignees
Labels

Comments

@WHITE-developer
Copy link

What happened?

Description

Steps to reproduce

  1. Create a new entry that has a few required fields (other than the title, which is always required).
  2. Give the entry a title, but do not put any value in the other required fields
  3. You are able to create the entry when the entry is still disabled, so there is no validation, but this is fine
  4. When you are editing the entry on, for example, English and choose to enable the entry for another language (see screen below) you are able to save the entry and there is no validation on this entry for the other site.
    Image

Expected behavior

You cant save and enable the entry, because the required fields, on the other site that is enabled, are not filled in.

Actual behavior

Craft CMS version

5.4.4

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@i-just
Copy link
Contributor

i-just commented Jan 27, 2025

Hi, thanks for reporting! I raised a PR for this.

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

No branches or pull requests

2 participants