allow intl for document object

This commit is contained in:
Manuel Raynaud
2014-02-10 12:04:03 +01:00
parent b9575432fd
commit e4916e5198
3 changed files with 27 additions and 13 deletions

View File

@@ -860,7 +860,7 @@ class FileController extends BaseAdminController
protected function createDocumentEventInstance($parentType, $model, $data)
{
$documentCreateEvent = new DocumentCreateOrUpdateEvent($parentType, null);
$model->setLocale($data['locale']);
if (isset($data['title'])) {
$model->setTitle($data['title']);
}