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']);
}

View File

@@ -122,6 +122,13 @@ abstract class DocumentModification extends BaseForm
)
)
)
->add("locale", "text", array(
"constraints" => array(
new NotBlank()
),
"label_attr" => array("for" => "locale_create")
))
;
}
}