- Status changed to RTBC
over 1 year ago 8:35pm 31 May 2023 I get this error, too. I've been using 5.1, and I was never using an older version, as I'm working on a new site.
Warning: Undefined array key "#states" in Drupal\webform_views\Plugin\views\filter\WebformSubmissionNumericFilter->valueForm() (line 86 of /var/www/html/web/modules/contrib/webform_views/src/Plugin/views/filter/WebformSubmissionNumericFilter.php) #0 /var/www/html/web/core/includes/bootstrap.inc(347): _drupal_error_handler_real(2, 'Undefined array...', '/var/www/html/w...', 86) #1 /var/www/html/web/modules/contrib/webform_views/src/Plugin/views/filter/WebformSubmissionNumericFilter.php(86): _drupal_error_handler(2, 'Undefined array...', '/var/www/html/w...', 86) #2 /var/www/html/web/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php(943): Drupal\webform_views\Plugin\views\filter\WebformSubmissionNumericFilter->valueForm(Array, Object(Drupal\Core\Form\FormState)) #3 /var/www/html/web/core/modules/views/src/Form/ViewsExposedForm.php(111): Drupal\views\Plugin\views\filter\FilterPluginBase->buildExposedForm(Array, Object(Drupal\Core\Form\FormState)) #4 [internal function]: Drupal\views\Form\ViewsExposedForm->buildForm(Array, Object(Drupal\Core\Form\FormState)) #5 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(536): call_user_func_array(Array, Array)
The patch works, but it could probably use
$element['#states'] ?? NULL
, since PHP 7+ is required by Drupal 9.-
VladimirAus β
committed 9b254271 on 8.x-5.x authored by
MaxPah β
Issue #3273404 by MaxPah, tjtj, VladimirAus, solideogloria: Undefined...
-
VladimirAus β
committed 9b254271 on 8.x-5.x authored by
MaxPah β
- Status changed to Fixed
over 1 year ago 4:24am 10 August 2023 - π¦πΊAustralia VladimirAus Brisbane, Australia
Thank you! Committed! π»
Automatically closed - issue fixed for 2 weeks with no activity.