Getting this notice in an edge case when $elements[$delta] has not been initialised or was unset.

Undefined array key 0 in Drupal\smart_date\Plugin\Field\FieldFormatter\SmartDateFormatterBase->viewElements()

MR coming

Issue fork smart_date-3552182

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alex.skrypnyk created an issue. See original summary.

vancec’s picture

Confirm patch fixes the log spam created by this issue, no issues with patch after a few months in production.

mandclu made their first commit to this issue’s fork.

mandclu’s picture

I can see the need for the proposed change, though as implemented it does slightly change the logic. I have updated the MR, please confirm that the updated version still fixes your issue.

mandclu’s picture

Status: Active » Needs review
mandclu’s picture

Version: 4.2.4 » 4.3.x-dev

mandclu’s picture

Status: Needs review » Fixed

Merged into the 4.3.x. branch

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.