ContentModerationInfoBlockForm - Fatal Error

Created on 8 February 2022, almost 3 years ago
Updated 29 September 2023, about 1 year ago

Problem/Motivation

Starting with the beta3 release of this module, the ContentModerationInfoBlockForm's constructor contains a call to parent::__construct and its parameters are wrong, causing a fatal error.

Additionally, there are calls throughout the the form's class to ::setEntity and ::setOperation, which do not exist.

I'm not sure how this issue has not been previously uncovered, I do not see how this could have ever worked.

Steps to reproduce

  1. Install beta4 or dev release
  2. Place the content moderation info block, configured with Display change state form enabled (defaults to enabled)
  3. Navigate to a page where the block will appear
  4. Observe fatal error

Proposed resolution

Fix up the ContentModerationInfoBlockForm so it properly extends the EntityModerationForm.

Remaining tasks

Review/test patch. Merge.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kerasai

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024