Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AJAX autocomplete fix #249

Open
wants to merge 1 commit into
base: D7
Choose a base branch
from
Open

AJAX autocomplete fix #249

wants to merge 1 commit into from

Conversation

taytayevanson
Copy link

I was getting an error when using entity reference autocomplete fields, as well as some errors with views ajax with the default configuration. I found this snippet online and it 100% fixed the problem! It could be some sort of other server config, I'm not an expert. This is also one of my first pull requests so I apologize if I'm out of line haha! Let me say that this config has worked extremely well and I'm grateful for all of your work. Take it for what it's worth, just a thought! I found others online with the same problem and had a hard time tracking down the right solution.

Thanks!

@kkomelin
Copy link
Contributor

kkomelin commented Jul 21, 2016

Just for reference:
https://www.drupal.org/node/2599326
https://www.drupal.org/node/2749007
https://www.drupal.org/node/2554203
For some reasons, the approach implemented in this PR did not work for my environment.
A temporary workaround is https://www.drupal.org/project/autocomplete_deluxe, which works fine with that hardcoded non-clean urls in Drupal 7.

@taytayevanson
Copy link
Author

Interesting, I'll try autocomplete_deluxe with that turned off and see what it does. This is one of my first pull requests, sorry about that! I'm a huge fan, by the way; this config works really well.

@iryston
Copy link
Contributor

iryston commented Oct 24, 2016

To prevent allowing direct access to index.php is written a little module Autocomplete Unblock
The sandbox project is located at https://www.drupal.org/sandbox/irystonnet/2821464

Opened issue on Drupal.org Project applications https://www.drupal.org/node/2821473

To use it just clone to modules directory and enable.

git clone --branch 7.x-1.x https://git.drupal.org/sandbox/iryston.net/2821464.git autocomplete_unblock

@iryston
Copy link
Contributor

iryston commented Oct 24, 2016

@kkomelin autocomplete_deluxe doesn't work in some cases. For example, on author's name at node edit form.

@alexfinnarn
Copy link

Thanks @iryston. Still works for me and prevents patching Drupal core!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants