Install geshifilter.
Go to admin/config/content/formats/geshifilter/languages/disabled
Choose one or more language to add.
After we save get this notices, but the languages are saved.

    Notice: Undefined index: tags in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->validateForm() (line 83 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
    Notice: Undefined index: tags in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->validateForm() (line 92 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
    Notice: Undefined index: cpp in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->validateForm() (line 92 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
    Notice: Undefined index: java in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->validateForm() (line 92 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
    Notice: Undefined index: php in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->validateForm() (line 92 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
    Notice: Undefined index: cpp in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->validateForm() (line 79 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
    Notice: Undefined index: java in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->validateForm() (line 79 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
    Notice: Undefined index: php in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->validateForm() (line 79 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).
    Notice: Undefined index: tags in Drupal\geshifilter\Form\GeshiFilterLanguagesForm->submitForm() (line 126 of /home/ubuntu/workspace/public_html/modules/custom/geshifilter/src/Form/GeshiFilterLanguagesForm.php).

This is because the default languages, if we save again, we get warnings about every new language we add.

Comments

yukare created an issue. See original summary.

yukare’s picture

This was a two lines fix. We need to add all languages from config, as the form have only disabled languages, but we test for all.

  • yukare committed 7e1cd48 on 8.x-1.x
    Issue #2823783 by yukare: Notice while enabling languages
    
yukare’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.