Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
1.4.0
-
Linux : PHP 7.0.9-1 / nginx
Description
Hello,
There are this error when we want update a Content-Type in the administration interface :
[2016-08-10 14:47:45] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\BadRequestHttpException: "Argument '$contentType' has a bad state: Draft of the ContentType already exists" at /var/www/ezplatform-dev/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/EventListener/ExceptionListener.php line 55 "exception":"[ object] (Symfony\\Component\\HttpKernel\\Exception
BadRequestHttpException(code: 0): Argument '$contentType' has a bad state: Draft of the ContentType already exists at /var/www/ezplatform-dev/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/EventListener/ExceptionListener.php:55, eZ\\Publish\\Core\\Base\\Exceptions
BadStateException(code: 0): Argument '$contentType' has a bad state: Draft of the ContentType already exists at /var/www/ezplatform-dev/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentTypeService.php:1039)"} []
The cause is that this content has the state "draft" with another user.
Step to reproduce :
1. Create 2 administrators users
2. Edit Content-Type with the user 1
3. Edit Content-Type with the user 2
Best Regards,
Alexandre