Skip to content

Commit

Permalink
Merge pull request #26 from dew326/ezs-1395-send-for-review-content-o…
Browse files Browse the repository at this point in the history
…n-the-fly

EZS-1395: Send for review stuck when using content on the fly
  • Loading branch information
yannickroger authored Feb 28, 2017
2 parents 1ac4d05 + d4cb404 commit 4d958a2
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,20 @@ YUI.add('cof-createcontent-universaldiscoveryserviceplugin', function (Y) {
* @param {eZ.ViewService} service
*/
setNextViewServiceParameters: function (service) {
var host = this.get('host');
var host = this.get('host'),
content = host.get('content'),
languageCode = host.get('languageCode');

if (content && !content.get('mainLanguageCode')) {
content.set('mainLanguageCode', languageCode);
}

if (host.get('parentLocation') && service instanceof Y.eZ.ContentCreateViewService) {
service.setAttrs({
parentLocation: host.get('parentLocation'),
parentContent: host.get('content'),
parentContent: content,
contentType: host.get('contentType'),
languageCode: host.get('languageCode')
languageCode: languageCode
});
}
},
Expand Down

0 comments on commit 4d958a2

Please sign in to comment.