Skip to content
Snippets Groups Projects
Commit e6a4819e authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1751082 by das-peter: Fixed Undefined index: langcode in...

Issue #1751082 by das-peter: Fixed Undefined index: langcode in language_admin_edit_form_validate().
parent de473408
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -314,7 +314,7 @@ function language_admin_add_custom_form_validate($form, &$form_state) {
if ($form_state['values']['predefined_langcode'] == 'custom') {
$langcode = $form_state['values']['langcode'];
// Reuse the editing form validation routine if we add a custom language.
language_admin_edit_form_validate($form, $form_state);
language_admin_edit_form_validate($form['custom_language'], $form_state);
if ($language = language_load($langcode)) {
form_set_error('langcode', t('The language %language (%langcode) already exists.', array('%language' => $language->name, '%langcode' => $langcode)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment