Commit a1826842 authored by alexpott's avatar alexpott

Issue #2351667 by Maouna, zaporylie, Gábor Hojtsy: Can't add another language...

Issue #2351667 by Maouna, zaporylie, Gábor Hojtsy: Can't add another language (due to validation errors)
parent 3137a14d
......@@ -46,6 +46,7 @@ public function form(array $form, FormStateInterface $form_state) {
$form['predefined_submit'] = array(
'#type' => 'submit',
'#value' => $this->t('Add language'),
'#name' => 'add_language',
'#limit_validation_errors' => array(array('predefined_langcode'), array('predefined_submit')),
'#states' => array(
'invisible' => array(
......@@ -76,6 +77,7 @@ public function form(array $form, FormStateInterface $form_state) {
$form['custom_language']['submit'] = array(
'#type' => 'submit',
'#value' => $this->t('Add custom language'),
'#name' => 'add_custom_language',
'#validate' => array('::validateCustom'),
'#submit' => array('::submitForm', '::save'),
);
......
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