Skip to content

Commit

Permalink
Merge pull request ezsystems#291 from ezsystems/ezp-24581_content_typ…
Browse files Browse the repository at this point in the history
…e_create_error

Fix EZP-24581: Creating a new content type failed with error: Failed …
  • Loading branch information
glye committed Jul 31, 2015
2 parents 09abedd + 5adc3aa commit 7d9ae87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/ContentTypeController.php
Expand Up @@ -129,7 +129,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 7d9ae87

Please sign in to comment.