Problem/Motivation

Can't add specific view exposed form id in antibot setting to protected by antibot. don't want to activate antibot for all views exposed forms with form id "views_exposed_form".

Issue fork antibot-3221723

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gawade.nagesh created an issue. See original summary.

gawade.nagesh’s picture

Assigned: Unassigned » gawade.nagesh

gawade.nagesh’s picture

Status: Active » Needs review
StatusFileSize
new721 bytes

Here is the patch.

gaurav.kapoor’s picture

#5 works for me.

I was able to reproduce this issue and see that as of now if we add form id of a view exposed form (Eg: 'views-exposed-form-content-page-1') in the antibot settings, then antibot doesn't work.

After, applying the patch, the antibot starts working for specific exposed views exposed form as well.

I Will keep this issue open for now to get more feedback regarding the patch and we should also add a test specific to views exposed form as well.

Thanks for working on this @gawade.nagesh.

gaurav.kapoor’s picture

Assigned: gawade.nagesh » Unassigned
paulocs’s picture

@gaurav.kapoor how did you test it?

It looks like the form wasn't submitted before the patch as well but the form is not redirected to /antibot...

gaurav.kapoor’s picture

@paulocs, here is how I tested it:

1. Add form ID of a view exposed form (Eg: 'views-exposed-form-content-page-1') to antibot settings.
2. The antibot module starts working for specific exposed views forms now, rather than all of them.

So with this users don't have to enable antibot for all the exposed view forms. With a slight tweak in deciding which forms to alter, we are able to have this feature.

Let me know if I am missing anything.

gaurav.kapoor’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.