Skip to content

[5.x]: Single section entries are created in a pending state #18931

@mmikkel

Description

@mmikkel

What happened?

Description

This is probably another side effect of #18642:

When adding a new Single section, the single entry is created without a postDate set and in a pending state. Resaving the entry manually in the CP fixes the issue (i.e. makes the entry "Live").

This also happens when the new Single section is created via project-config/apply or craft up in other environments.

Steps to reproduce

  1. Create a new Single section.
  2. Confirm that the newly created Single entry has a "Pending" status
  3. Re-save the entry manually and confirm it now has a "Live" status

Expected behavior

Single entries should be "Live" after their initial creation.

Actual behavior

Single entries are "Pending" after their initial creation, and must be manually re-saved in order to become "Live".

Craft CMS version

5.10.2

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

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions