Problem/Motivation

When adding AJAX states to the StateTransitionConfirmForm, the exception "LogicException: The database connection is not serializable" is thrown.

Proposed resolution

The issue comes from the transition property that currently can't be serialized. Since the transition property is set during buildForm, we could simply remove the property on __sleep as it will be reassign automatically on buildForm.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

aerzas created an issue. See original summary.

aerzas changed the visibility of the branch 3476602-ajax-error-on to hidden.

aerzas changed the visibility of the branch 3476602-ajax-error-on to active.

aerzas’s picture

Status: Active » Needs review

jsacksick made their first commit to this issue’s fork.

  • jsacksick committed bfd94feb on 8.x-1.x authored by aerzas
    Issue #3476602 by Aerzas: AJAX error on StateTransitionConfirmForm
    
jsacksick’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.