Issue #3333664 by joelpittet, lauriii: Claro: Undefined array key "expose_button"

merge-requests/3208/head^2
Dave Long 2023-02-14 09:53:46 +00:00
parent 30c3b75528
commit 24bfe9520b
No known key found for this signature in database
GPG Key ID: ED52AE211E142771
1 changed files with 3 additions and 1 deletions

View File

@ -1618,7 +1618,9 @@ function claro_form_views_ui_config_item_form_alter(array &$form, FormStateInter
// needed or require refactoring in https://drupal.org/node/3164890
unset($form['options']['clear_markup_start']);
unset($form['options']['clear_markup_end']);
$form['options']['expose_button']['#prefix'] = str_replace('clearfix', '', $form['options']['expose_button']['#prefix']);
if (isset($form['options']['expose_button']['#prefix'])) {
$form['options']['expose_button']['#prefix'] = str_replace('clearfix', '', $form['options']['expose_button']['#prefix']);
}
if (isset($form['options']['group_button']['#prefix'])) {
$form['options']['group_button']['#prefix'] = str_replace('clearfix', '', $form['options']['group_button']['#prefix']);
}