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.
The parent issue broke the $element['#ajax']['callback'] functionality. Attached is a screenshot of the problem from the book module.
Comment | File | Size | Author |
---|---|---|---|
#14 | current_path_fixup-2384545-14.patch | 6.6 KB | Wim Leers |
Comments
Comment #2
BerdirWe have some pseudo-ajax tests, how did they not catch this?
Comment #3
xjmComment #4
Wim Leers+1 :(
And thanks, @jbrown, for catching this so fast!
Comment #5
Wim LeersThis also broke all
editor.module
dialogs. Hence it's now impossible to add links or images in CKEditor.Comment #6
Wim LeersThe patch in the IS can not possibly ever have applied. I wonder against which version it was rolled.
Comment #7
Wim LeersI wanted to write a test, but I don't think we actually can. That's the thing about
#ajax
: it is triggered by JS. We cannot emulate that, for the logic to construct the/system/ajax/SOMETHING
URL lives in JS.The best we can do, is to verify the AJAX settings. This patch adds test coverage for that.
Comment #8
dawehnerI'm a bit confused as this does not have an assertion
Comment #9
Wim Leers#8: You're right; I added that and then realized I could only manually trigger that, and hence that'd be pointless. I can just remove that hunk.
Comment #10
Wim Leers#2384327: admin/config/development/configuration/single/export doesn't allow you to export a single configuration. is a duplicate of this, closed it.
Comment #11
larowlanjust a gentle plug for #2232861: Create BrowserTestBase for web-testing on top of Mink
we *need* front-end testing, please review :)
Comment #12
twistor CreditAttribution: twistor commentedI just ran into this. #7 fixes the issue.
Comment #13
mikeker CreditAttribution: mikeker commentedMarked #2385599: "Add new view" AJAX returns the entire form as a dup of this bug. The patch in #7 fixes that issue.
Comment #14
Wim LeersThis reroll addresses #8, and adds a comment explaining why we can't test it (basically what I wrote in #7).
Anybody want to RTBC this patch and make many UIs across Drupal 8 work again? :)
Comment #15
Gábor HojtsyI think the added test coverage is sufficient for what we can test. The explanation is a bit verbose on the ::preview but I see where it confused @dawehner originally. Looks good :)
Comment #16
alexpottThis issue addresses a critical bug and is allowed per https://www.drupal.org/core/beta-changes. Committed 1193f67 and pushed to 8.0.x. Thanks!
Fixed on commit - SettingsCommand was not used.