enonic / xp

Enonic XP
https://enonic.com
GNU General Public License v3.0
201 stars 34 forks source link

Set default layer language for a new content #7286

Closed ashklianko closed 5 years ago

ashklianko commented 5 years ago

@alansemenov commented on Mon Jul 22 2019

When a new content is created, set language property of the new content to default language of the current layer (now it's set to null).

GlennRicaud commented 5 years ago

Modification done in PR #7287 is not correct.

This new behaviour is overriding the param (not behaving as a default value). Also the place to do this kind of thing already exists: Please adapt CreateContentCommand::getDefaultLanguage instead

Moving this issue back to InProgress

GlennRicaud commented 5 years ago

Pass back to done. Will be fixed in https://github.com/enonic/xp/issues/7305