Dialog options are not honoured when open a dialog using GET

Created on 15 October 2023, about 1 year ago
Updated 16 October 2023, about 1 year 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.71.5 2024