[COMPONENTS] Small fix
This commit is contained in:
parent
160e56c61e
commit
9b421e0095
@ -54,7 +54,7 @@ class Posting extends Module
|
|||||||
$request = $vars['request'];
|
$request = $vars['request'];
|
||||||
$form = Form::create([
|
$form = Form::create([
|
||||||
['content', TextareaType::class, ['label' => ' ']],
|
['content', TextareaType::class, ['label' => ' ']],
|
||||||
['attachments', FileType::class, ['label' => _m('Attachments'), 'multiple' => true, 'required' => false]],
|
['attachments', FileType::class, ['label' => _m(' '), 'multiple' => true, 'required' => false]],
|
||||||
['scope', ChoiceType::class, [
|
['scope', ChoiceType::class, [
|
||||||
'label' => 'To:',
|
'label' => 'To:',
|
||||||
'multiple' => true,
|
'multiple' => true,
|
||||||
@ -63,6 +63,7 @@ class Posting extends Module
|
|||||||
]],
|
]],
|
||||||
['send', SubmitType::class, ['label' => _m('Send')]],
|
['send', SubmitType::class, ['label' => _m('Send')]],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$form->handleRequest($request);
|
$form->handleRequest($request);
|
||||||
if ($form->isSubmitted()) {
|
if ($form->isSubmitted()) {
|
||||||
$data = $form->getData();
|
$data = $form->getData();
|
||||||
|
Loading…
Reference in New Issue
Block a user