Issue #3127838 by Lendude: In MediaLibrary the 'save and insert' is nested in code when it doesn't have to be
parent
f08be334ae
commit
f89fcba55b
|
@ -472,14 +472,12 @@ abstract class AddFormBase extends FormBase implements BaseFormIdInterface, Trus
|
||||||
if ($this->isAdvancedUi()) {
|
if ($this->isAdvancedUi()) {
|
||||||
$actions['save_select']['#value'] = $this->t('Save and select');
|
$actions['save_select']['#value'] = $this->t('Save and select');
|
||||||
$actions['save_insert'] = [
|
$actions['save_insert'] = [
|
||||||
'save_insert' => [
|
|
||||||
'#type' => 'submit',
|
'#type' => 'submit',
|
||||||
'#value' => $this->t('Save and insert'),
|
'#value' => $this->t('Save and insert'),
|
||||||
'#ajax' => [
|
'#ajax' => [
|
||||||
'callback' => '::updateWidget',
|
'callback' => '::updateWidget',
|
||||||
'wrapper' => 'media-library-add-form-wrapper',
|
'wrapper' => 'media-library-add-form-wrapper',
|
||||||
],
|
],
|
||||||
],
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
return $actions;
|
return $actions;
|
||||||
|
|
Loading…
Reference in New Issue