Effects not stored correctly

Created on 6 March 2024, 10 months ago
Updated 2 April 2024, 9 months ago

Problem/Motivation

Effect settings are not stored correctly, causing Pagedesigner to break when trying to edit an element

Steps to reproduce

  • Open an element in PD
  • Add an effect and configured it
  • Save element
  • Click on element to edit it.

Proposed resolution

Remove string conversion in patch method of Effect Handler:
$entity->field_effects->value = Json::encode((string) $data['effects']);

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇨🇭Switzerland danielwirz

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