Ajax-enabled image effect forms do not update to the latest ajax processed configuration

Created on 12 September 2024, 3 months ago
Updated 17 September 2024, 3 months ago

Problem/Motivation

Ajax-enabled image effect forms do not update to the latest ajax-processed configuration. If you action an ajax response multiple times before clicking the update effect CTA, the configuration saved is the one of the first ajax response requested.

Steps to reproduce

A bit hard:

  • enable test modules
  • install the image_module_test module
  • add a new image style
  • add an Ajax test effect to the style
  • edit the effect, change multiple times the value of the parameter in the effect clicking on 'Ajax refresh' before eventually entering a final value and clicking 'Update effect'
  • re-open the effect form from the style -- BANG, the value is not the one you finally wanted to save

Proposed resolution

Specifically update the configuration in the plugin collection for the image effect before saving the style in ImageEffectFormBase::submitForm()

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

RTBC

Version

11.0 🔥

Component
Image module 

Last updated 1 day ago

Created by

🇮🇹Italy mondrake 🇮🇹

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