Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Fix EZP-26862 Content create with forced language #792

Merged
merged 1 commit into from
Feb 2, 2017

Conversation

StephaneDiot
Copy link
Contributor

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

@StephaneDiot
Copy link
Contributor Author

ping @dpobel @yannickroger

@StephaneDiot StephaneDiot changed the base branch from master to 1.7 January 30, 2017 15:54
@DavidLiedle
Copy link
Contributor

Where do the ezrobot code review results show?

@StephaneDiot StephaneDiot changed the title Fix/EZP-26862 Content create with forced language Fix EZP-26862 Content create with forced language Jan 30, 2017
@StephaneDiot StephaneDiot changed the base branch from 1.7 to EZP-26130_Search_for_content_with_many_locations_master January 30, 2017 16:26
@dpobel
Copy link
Contributor

dpobel commented Jan 30, 2017

@DavidLiedle normally in a comment in the pull request, but it seems the upgrade done lastly by Vidar broke that.

@StephaneDiot StephaneDiot force-pushed the Fix/EZP-26862_Content_Edit_with_unknown_language branch from 5b29114 to 052aaa6 Compare January 30, 2017 16:32
@StephaneDiot StephaneDiot changed the base branch from EZP-26130_Search_for_content_with_many_locations_master to 1.7 January 30, 2017 16:33
@@ -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.
Copy link
Contributor

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 ;)

Copy link
Contributor

@dpobel dpobel left a 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

@StephaneDiot StephaneDiot force-pushed the Fix/EZP-26862_Content_Edit_with_unknown_language branch from 914379d to 5eab2ac Compare January 31, 2017 09:11
@StephaneDiot
Copy link
Contributor Author

updated @dpobel

@sunpietro
Copy link
Contributor

👍 :)

@@ -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.
Copy link
Contributor

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 ]

@StephaneDiot StephaneDiot force-pushed the Fix/EZP-26862_Content_Edit_with_unknown_language branch from 5eab2ac to 09d3898 Compare January 31, 2017 15:52
@StephaneDiot
Copy link
Contributor Author

updated @dpobel @yannickroger

@StephaneDiot StephaneDiot merged commit 6a9eb96 into 1.7 Feb 2, 2017
@StephaneDiot StephaneDiot deleted the Fix/EZP-26862_Content_Edit_with_unknown_language branch April 19, 2017 12:09
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants