The state edit form for content moderation does not support ajax.

Created on 19 June 2019, about 5 years ago
Updated 24 February 2023, over 1 year ago

Problem/Motivation

When ajax is added to the workflow_state_edit_form, a "The database connection is not serializable" Logic exception occurs. This happens because the ContentModeration workflow type has the entity type manager as one of its properties and is part of the form state's storage property.

Steps to reproduce

Proposed resolution

Add the DependencySerializationTrait to the ContentModeration workflow type. It may be that the ContentModerationState object does not need to contain the workflow object, in which case the form would also work with ajax.

Remaining tasks

Add information as asked for in #8

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Closed: cannot reproduce

Version

10.1 ✨

Component
Content moderationΒ  β†’

Last updated 1 day ago

  • Maintained by
  • πŸ‡¦πŸ‡ΊAustralia @Sam152
Created by

πŸ‡ΊπŸ‡ΈUnited States c7bamford

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

  • πŸ‡³πŸ‡ΏNew Zealand quietone New Zealand

    It has been a further 10 months and more information has not been provided. I asked about this issue in #bugsmash (due to my lack of knowledge in this area). larowlan responded emphasizing that based on the testing by @Sam152, the information requested in #8 is needed.

    Therefore, closing as cannot reproduce. If you are experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue β†’ (starting from "Install Drupal core").

    Thanks!

Production build 0.71.5 2024