allow intl for document object
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
|
||||
@@ -122,6 +122,13 @@ abstract class DocumentModification extends BaseForm
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
->add("locale", "text", array(
|
||||
"constraints" => array(
|
||||
new NotBlank()
|
||||
),
|
||||
"label_attr" => array("for" => "locale_create")
|
||||
))
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user