Warnings when leaving values empty

Created on 16 August 2023, over 1 year ago
Updated 22 January 2024, 11 months ago

Problem/Motivation

If the value of the footnote is empty and the text has a value, it generates warnings when the filter gets applied when rendering on the front-end:
Warning: Undefined array key 2 in .../src/Plugin/Filter/FootnotesFilter.php on line 284
Warning: Undefined array key 2 in .../src/Plugin/Filter/FootnotesFilter.php on line 307

Steps to reproduce

  1. Use version 3.1.0 with CKEditor5
  2. Enter footnotes fill in the text and the leave the value empty.
  3. Go to the front-end
🐛 Bug report
Status

Fixed

Version

3.1

Component

Footnotes

Created by

🇳🇱Netherlands mike.vindicate

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024