Skip to content

Commit

Permalink
Fix EZP-24581: Creating a new content type failed with error: Failed …
Browse files Browse the repository at this point in the history
…to load '/contenttype/create/1'

Solves it by adding unique string to identifier.
  • Loading branch information
glye committed Jul 27, 2015
1 parent b2f71a3 commit 5adc3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/ContentTypeController.php
Expand Up @@ -130,7 +130,7 @@ public function createContentTypeAction($contentTypeGroupId, $languageCode = nul
$contentTypeGroup = $this->contentTypeService->loadContentTypeGroup($contentTypeGroupId);

$contentTypeCreateStruct = new ContentTypeCreateStruct([
'identifier' => 'new_content_type',
'identifier' => '__new__' . md5(microtime(true)),
'mainLanguageCode' => $languageCode,
'names' => [$languageCode => 'New ContentType'],
]);
Expand Down

0 comments on commit 5adc3aa

Please sign in to comment.