az-digital / az_quickstart

UArizona's web content management system built with Drupal 10.
https://quickstart.arizona.edu
GNU General Public License v2.0
30 stars 20 forks source link

PHP warnings logged upon inserting a new Bootstrap grid #3493

Closed bberndt-uaz closed 1 week ago

bberndt-uaz commented 2 weeks ago

Describe the bug

Each time the "Bootstrap Grid" button in the editor is used to insert a new Bootstrap grid in the text area below, five PHP warnings are logged which look like this:

Warning: Undefined array key "default_layout" in Drupal\ckeditor_bs_grid\Form\GridDialog->buildLayoutStep() (line 273 of /app/web/modules/contrib/ckeditor_bs_grid/src/Form/GridDialog.php)

To Reproduce

Steps to reproduce the behavior:

  1. Edit any page containing a text area using the Standard text format
  2. Click the "Bootstrap Grid" button in the editor toolbar
  3. Click the Next button in the Select Columns modal
  4. Save the grid or cancel out of it
  5. Go to the Recent Log Messages at /admin/reports/dblog
  6. Observe 5 new PHP warnings

Proposed resolution

Add the patch from this drupal.org issue to Quickstart:

Screenshots

image