Commit 0d208056 authored by catch's avatar catch
Browse files

Issue #3127838 by Lendude: In MediaLibrary the 'save and insert' is nested in...

Issue #3127838 by Lendude: In MediaLibrary the 'save and insert' is nested in code when it doesn't have to be

(cherry picked from commit f89fcba5)
parent e8667fce
...@@ -472,13 +472,11 @@ protected function buildActions(array $form, FormStateInterface $form_state) { ...@@ -472,13 +472,11 @@ protected function buildActions(array $form, FormStateInterface $form_state) {
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',
],
], ],
]; ];
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment