Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views_ui.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Oct 2014 at 10:49 UTC
Updated:
15 May 2015 at 19:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alexpottAfter adding the filter the form action is still set to
/admin/structure/views/ajax/add-handler/user_admin_people/page_1/filter. I think what should happen is that the form action should be set to/admin/structure/views/ajax/handler/user_admin_people/page_1/filter/FILTER_IDand then it work just fine. But this might not work - since you can add more than one filter at once.Comment #2
olli commentedThis seems to fix it.
Comment #3
Khetam commentedI am using drupal 8.0.0-beta2 version and It's working fine with me :) :) :)
Thanks,
Khetam.
Comment #4
olli commentedSame problem with sort criteria.
Comment #5
vijaycs85thanks for the patch @olli. Would be great to have a test-only failing patch.
One minor comment:
Mousedown? why not leave it as click? if we have to, then the handler name should be changed as well.
Comment #6
olli commentedSame problem with the "Remove" button when adding a filter.
I agree, but not sure how.
Using click makes the ajax trigger when you hit enter, see comments in RenderElement::preRenderAjaxForm(). This happens in HEAD currently.
Drupal.viewsUi.Checkboxifier.prototype.clickHandler? That's for the checkbox, not the button.
Now I see that this changes nearly all of #2130205: Unable to "Expose this filter to visitors, to allow them to change it"... It looks like d7 views ui makes these ajax buttons work via javascript but that code has been removed from d8.
Comment #7
olli commentedIt would be nice to move this fix up to ViewsFormBase or somewhere.
Comment #8
olli commentedHere's another patch that is about how d7 views ui seems to work.
Comment #9
metzlerd commentedDuplicate of #2248223: Adding a new Views filter and making it exposed returns user back to list of filters. If appropriate it would probably good to file patches there.