Closed (fixed)
Project:
Views Autocomplete Filters
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Aug 2012 at 19:30 UTC
Updated:
31 Mar 2024 at 19:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
santiwww commentedI needed the same functionality so I created a patch to include it.
To use it there's a modification needed in autocomplete.js from core which already has a patch (#365241: Add select event to autocomplete feature)
I've tested it with drupal 7.34.
Comment #2
victoriachan commentedTested. This works great for me. Thanks!
I've rerolled the patch as it somehow didn't apply for me.
Comment #3
vasikei couldn't make it work.
I'm not sure the autosubmit js works.
am i missing something?
thank you
Comment #4
ivoo56 commentedThanks santiwww !
Autocomplete patch worked for me, but only after I turned Use Ajax to Yes in view configuration tab. I did not need to apply the core patch because my D7 version already had it.
Comment #5
edurenye commentedI think that option must default to TRUE.
This issue also happens in d8, so I fixed it there. When fixed we can backport it.
Comment #6
edurenye commentedOps, I was not using the settings, sorry.
Comment #7
vasike2 things for the latest patch (#6)
- i wouldn't make this option default to TRUE - it affects the current implementation, and maybe it's not desired
- there is nothing to let us know the form will be/ it is submitted.
I think we need something there to tell us about what's happening.
I also could do a manual submit before the script does it job.
Comment #8
holist commentedRerolled #6.
Comment #9
ruichao commentedThis patch is based on #6.
It includes below changes:
1. auto filter option default to false.
2. changed the js handler to use jquery ui select handler to submit. It works with both AJAX and non-AJAX and thus works in views preview.
Comment #10
webdrips commented#9 broke all views filters for me...seems to have removed "Remember the last selection
Enable to remember the last selection made by the user.", along with the checkboxes for the user roles. I had this set for some views.
#8 seems to be a safer bet so far.
Edit: #8 isn't working either, and I believe it can't be used with ajax.
Comment #11
sandzel commentedI adjusted patch from #9 to work with a views that has many submit buttons.
Comment #12
alok.tiwari commentedModified #11 to align with V. 8.x-1.7,
also defined autosubmit field to file :
views_autocomplete_filters.moduleas the field's data wasn't getting stored while saving views.Fixed Minor PHPCS issues.
Comment #13
alok.tiwari commentedComment #14
vasikeThere will be no features for 8.x ... so 2.x should be considered
And unfortunately the latest one fails to apply.
Comment #16
vasikeMR available - created from previous patches ... thanks to all
+ some small updates and made it green.
Comment #18
vasikeand MR merged ... now the autosubmit should be available in the latest dev version
composer require 'drupal/views_autocomplete_filters:2.0.x-dev@dev'Leave the issue in
Needs review- for now - to get some feedback for the "results".thanks to all for the efforts on this.
Comment #19
vasikeTests added that covers this ... so we should be covered.
+ New release which includes this ... so Fixed.