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 |
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.moduledialogs. 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/SOMETHINGURL 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 commentedI just ran into this. #7 fixes the issue.
Comment #13
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.