Dialog options are not honoured when open a dialog using GET

Created on 15 October 2023, 8 months ago
Updated 16 October 2023, 8 months ago

Problem/Motivation

Since 📌 Allow AJAX to use GET requests Fixed and 📌 Use httpMethod instead of type for AJAX get/post request property Fixed it is possible to open a dialog with Ajax via a GET request. However, with this link:

<a href="/some/path"
  class="use-ajax"
  data-dialog-type="modal"
  data-dialog-options="{&quot;width&quot;:800}"
  data-ajax-http-method="GET"
>Open dialog</a>

... the dialog options (data-dialog-options) are not followed. With POST everything works.

The MR contains a test proving the bug

Steps to reproduce

See the test.

Proposed resolution

Fix it.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

N/A

🐛 Bug report
Status

Fixed

Version

10.1

Component
Ajax 

Last updated 2 days ago

Created by

🇷🇴Romania claudiu.cristea Arad 🇷🇴

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

Comments & Activities

Production build 0.69.0 2024