Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm having a php warning such as
Undefined index: comment
on line 39 of /var/www/html/docroot/modules/contrib/office_hours/src/Plugin/Field/FieldWidget/OfficeHoursWidgetBase.php
, when saving some empty field values.
We can prevent that by checking if the array key exists before trying to use it.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3059369-2.patch | 819 bytes | marcoscano |
Comments
Comment #2
marcoscanoComment #4
johnvCommitted. Thanks.