-
Notifications
You must be signed in to change notification settings - Fork 47
Fix EZP-26862 Content create with forced language #792
Fix EZP-26862 Content create with forced language #792
Conversation
ping @dpobel @yannickroger |
Where do the ezrobot code review results show? |
@DavidLiedle normally in a comment in the pull request, but it seems the upgrade done lastly by Vidar broke that. |
5b29114
to
052aaa6
Compare
@@ -196,12 +196,12 @@ YUI.add('ez-contenttypeselectorview', function (Y) { | |||
* | |||
* @event createContent | |||
* @param {eZ.ContentType} contentType | |||
* @param {String} languageCode (always set to "eng-GB"). This | |||
* parameter is deprecated and will be removed in PlatformUI 2.0 | |||
* @param {String} (Optional) languageCode If none provided the contentCreationDefaultLanguageCode of the app is used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[languageCode]
and the english description should be improved for human ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and please fix the commit message as well
914379d
to
5eab2ac
Compare
updated @dpobel |
👍 :) |
@@ -196,12 +196,12 @@ YUI.add('ez-contenttypeselectorview', function (Y) { | |||
* | |||
* @event createContent | |||
* @param {eZ.ContentType} contentType | |||
* @param {String} languageCode (always set to "eng-GB"). This | |||
* parameter is deprecated and will be removed in PlatformUI 2.0 | |||
* @param {String} (Optional) [languageCode] If none provided the content creation default language of the app is used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove (Optional)
if you put the parameter between [
and ]
5eab2ac
to
09d3898
Compare
updated @dpobel @yannickroger |
jira: https://jira.ez.no/browse/EZP-26862
Description
PlatformUI was always creating content with the default create language of the app. Now we can set a languageCode to the createContent event to force a content creation on a given language.
Tests
Manually and unit tested