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

Form API AJAX request to get a date-time format example string fails to return correct string to Drupal.AJAX

$
0
0

Found in (231fd21638cf28fda43939eaadc21bbd4deb1ff2).

Steps to reproduce:

  1. Navigate to admin/config/regional/date-time/formats/add
  2. Type a letter such as d in to the Format string* field.

Expected result:

A string with an example of the current time formatted in the provided format string should be shown to the right of the input field.

Actual result:

No example string is shown. Looking in the DOM, we see an empty small tag where the string would have been appended.

Findings so far

The AJAX callback system_date_time_lookup in system.admin.inc is called correctly and the expected example string is produced and passed into a ajax_command_replace function.

The response is maintained through the handleRaw method of the HttpKernel object until the response object, which is an Array, is checked as an instance of a Symfony\Component\HttpFoundation\Response, which it fails to be.

Screenshot_4_9_13_3_21_PM.png

This is probably related to #1954882: Convert system/ajax to a route.

AttachmentSizeStatusTest resultOperations
Screenshot_4_9_13_3_21_PM.png300.3 KBIgnored: Check issue status.NoneNone

Viewing all articles
Browse latest Browse all 291859

Trending Articles



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