Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Input Reset Does not work with ajax
The in_array function does not take into account for random string appended for ajax callbacks
Steps to reproduce
Create a block or page with ajax enabled.
The crossmark in input will be missing.
Comment | File | Size | Author |
---|---|---|---|
#2 | issue-with-ajax-3201151-2.patch | 4.19 KB | joshua1234511 |
Comments
Comment #2
joshua1234511Added function stripos_array to handle wildcard id for ajax.
Js added with Drupal behaviors for ajax callbacks
Comment #3
joshua1234511Comment #4
izmeez CreditAttribution: izmeez commentedWith patch in #3215362: Spelling mistake InputResetSettingForm applied had to manually apply this patch, or alternatively this patch can be applied first and the other patch modified.
The patch does not cause any problems with the working of the module. However, I have not setup a test to check the ajax.
Comment #5
izmeez CreditAttribution: izmeez commentedMarking this issue as related to #3194871: Not working for Multi-valued fields. Both issues include patches that appear to address the ajax issue while the patch in the other issue also addresses the issue of multi-valued fields. Not sure if the patch in the other issue should be separated into two separate issues or if this thread should be closed as a duplicate. I think they are two separate issues and might be better treated as such. I Would like to know what others think.