Closed
Description
What happened?
Description
In my opinion, there are some issues with the Save as new entry feature.
-
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.
-
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
- saves an entry correctly (without validation errors)
- delete the value of a required field (an asset in my case)
- 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