The method exposedFormAlter() is not calling its parent method implementation. This means that all functionality defined by the base class is ignored and thus can lead to unwanted results.

For example the patch making sure query parameters are being preserved when submitting views filters isn't working anymore: https://www.drupal.org/project/drupal/issues/2681953#comment-12173800

CommentFileSizeAuthor
#2 parent_method_overriden-3100627-2.patch697 bytesFernly
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Fernly created an issue. See original summary.

Fernly’s picture

Status: Active » Needs review
FileSize
697 bytes

See the attached patch to resolve the issue.

i-trokhanenko’s picture

Version: 8.x-1.0 » 8.x-1.x-dev
Status: Needs review » Reviewed & tested by the community

Hi @Fernly,
Thanks for the patch, it works well for me.
Making RTBC.

  • i-trokhanenko committed 243759f on 8.x-1.x authored by Fernly
    Issue #3100627 by Fernly: exposedFormAlter() method overrides plugin...
i-trokhanenko’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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