Skip to content

[3.x]: Problem with Save as new entry feature #11959

Closed
@jlachancekffein

Description

@jlachancekffein

What happened?

Description

In my opinion, there are some issues with the Save as new entry feature.

  1. If I create a new entry from an existing entry by clicking on Save as new entry, and the current entry does not pass validation, Craft displays an error message for the current entry but still create a new entry with the errors of the current entry.

  2. The status of the new entry is live. According to me, the entry should be either Disabled or Draft. Otherwise, the entry is returned directly via queries, which doesn't make sense to me. Unless I misunderstand how it works.

Steps to reproduce

  1. saves an entry correctly (without validation errors)
  2. delete the value of a required field (an asset in my case)
  3. duplicates the entry by clicking Save as new entry

Expected behavior

Prevent entry creation if current contains errors or change status for Disabled or Draft

Actual behavior

The current entry is not saved but the copy is saved with status Live

Craft CMS version

3.7.54

PHP version

8.1

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions