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.
Due to the refactoring in #1919142: Convert Views UI AJAX forms to use FormInterface nothing is stored when you change anything on handlers UI.
Reproduce:
- Add a field
- Create a label, hit apply and go back to look whether it got saved
Comment | File | Size | Author |
---|---|---|---|
#13 | drupal-1933290-12.png | 130.87 KB | andymartha |
#12 | drupal-1933290-12.patch | 863 bytes | dawehner |
#5 | drupal-1933290-5.patch | 656 bytes | olli |
#4 | drupal-1933290-4.patch | 666 bytes | dawehner |
Comments
Comment #1
dawehnerI tracked it down to the following line:
with submit_handler containing the proper information, but ConfigItem::submitForm() is simply not called :(
Comment #2
dawehnerThis should be probably major.
Comment #3
webchick:(
Comment #4
dawehnerHere is a fix, but I'm not really sure why this works and the previous code does not.
Fact is, we have test coverage for simply stuff like that, but maybe the tests work slightly different?
Warning this patch size is 666 bytes, so this might be caught by php 5.4 :P
Comment #5
olli CreditAttribution: olli commentedCan't reproduce with 5.3.10.
Does this work for you?
Comment #6
dawehnerYeah your last patch works as well, see the comment about it on http://php.net/manual/en/function.call-user-func-array.php
Comment #8
dawehnerLet's do that now, and maybe later switch to just use the method call.
Comment #9
catchHmm I think I agree with webchick that this needs tests.
Comment #10
dawehnerWell I agree it would be great if we could have tests for that, but how can we test code, which just works on a certain php version, and not on a newer version?
The current code in core works fine in php 5.3, but not in php 5.4.
Comment #11
catchAhh that's a good point. Could do with a comment though explaining why call_user_func_array() is necessary.
Comment #12
dawehnerSo this time with a new comment?
Comment #13
andymartha CreditAttribution: andymartha commentedWith a fresh Drupal 8.x-dev installation on March 6, 2013, and with the patch drupal-1933290-12.patch on #12 on PHP 5.4, Views still gives AJAX errors. If you would like me to test or give input in different ways/different setups, let me know! :) See screenshots.
Comment #14
dawehner@andymartha
I can't reproduce that, but yeah maybe open another issue and describe how to reproduce this problem.
Comment #15
tstoecklerThis works beautifully. Let's get it in.
Comment #16
andymartha CreditAttribution: andymartha commented@dawehner
So sorry, I was making a custom module that made ajax errors not related to this. The patch drupal-1933290-12.patch works.
Comment #17
Dries CreditAttribution: Dries commentedCommitted to 8.x. Thanks.