Problem/Motivation

If you have exceptions from previous versions and update to the latest, there is an undefined index error.

Steps to reproduce

Have exceptions days from a previous version and update to the latest, then try and view a page that has office hours, the following error is thrown:
Error: Unsupported operand types in Drupal\office_hours\Plugin\Field\FieldFormatter\OfficeHoursFormatterBase->mergeDefaults() (line 105 of office_hours/src/Plugin/Field/FieldFormatter/OfficeHoursFormatterBase.php).

Proposed resolution

Will provide patch to fix.

CommentFileSizeAuthor
#2 issue-3352547-fix-undefined-index.patch926 bytesebremner

Comments

ebremner created an issue. See original summary.

ebremner’s picture

StatusFileSize
new926 bytes

Here is the patch to fix.

  • johnv committed 523f31eb on 8.x-1.x authored by ebremner
    Issue #3352547 by ebremner: Undefined index error when using exceptions...
johnv’s picture

Status: Active » Fixed

Please check dev.

Status: Fixed » Closed (fixed)

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