Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293450

Dialog options are not honoured when open a dialog using GET

$
0
0

Problem/Motivation

Since #956186: Allow AJAX to use GET requests and #3352984: Use httpMethod instead of type for AJAX get/post request property 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


Viewing all articles
Browse latest Browse all 293450

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>