Details
-
Bug
-
Resolution: Fixed
-
High
-
2015.05
-
None
Description
Saving a content type with default identifier 'new_content_type' blocks content type creation, because the identifier is already taken, in this case it should be numbered like 'new_content_type_1' or 'new_content_type1'
Below the log file error :
request.CRITICAL: Uncaught PHP Exception eZ\Publish\Core\Base\Exceptions\InvalidArgumentException: "Argument '$contentTypeCreateStruct' is invalid: Another ContentType with identifier 'new_content_type' exists" at .../ezplatform/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentTypeService.php line 786 {"exception":"[object] (eZ\\Publish\\Core\\Base\\Exceptions\\InvalidArgumentException(code: 0): Argument '$contentTypeCreateStruct' is invalid: Another ContentType with identifier 'new_content_type' exists at .../ezplatform/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentTypeService.php:786)"} []