Collaboration Permissions should not assume that plugins are set

Created on 16 August 2024, 3 months ago

Problem/Motivation

Is it possible that a text format does not have any plugins, this causes PHP notices:

Warning: Undefined array key "plugins" in Drupal\ckeditor5_premium_features\CollaborationPermissions->permissions() (line 98 of modules/contrib/ckeditor5_premium_features/src/CollaborationPermissions.php).

Steps to reproduce

Create a text format e.g. with just bold and underline.

Proposed resolution

Make code more defensive

Remaining tasks

MR

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

1.3

Component

Code

Created by

🇬🇧United Kingdom scott_euser

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