- Issue created by @lmlima
- Status changed to Needs review
5 months ago 1:00pm 14 June 2024 - Status changed to Fixed
5 months ago 4:17pm 14 June 2024 - Status changed to Fixed
5 months ago 4:19pm 14 June 2024
When using a view with an exposed filter that uses Views year filter, the error mensage
Warning: Undefined array key "url" in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup() (line 170 of core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php).
shows up.
This issue is similar to
🐛
Undefined array key "url" in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup()
Fixed
.
The libraries.yml is missing a URL key for the license.
Set module config to use Bootstrap Datepicker in /admin/config/views-year-filter/settings. Create a views page that uses Views year filter in an exposed filter. Go to the views page as an anonimous user, select a date in Datepicker and press apply.
The error mensage
Warning: Undefined array key "url" in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup() (line 170 of core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php).
shows up.
Add url: https://opensource.org/license/apache-2-0
to views_year_filter.libraries.yml
file.
Reviews needed (it is a pretty small fix)
None
None
None
Fixed
2.1
Code