Updated: Comment #N

Problem/Motivation

Views exposed forms got slightly broken along the way somewhere. Currently, you cannot change the value of the submit button (You can see this already by looking at the admin/content view, the exposed filters button says 'Apply' when this should say 'Filter', which is in the configuration for the view), also the reset button is not nested inside the actions for the form.\\

Before:

before

After:

after

Proposed resolution

Fix these issues and add test coverage for the submit button!

Remaining tasks

Patch, review.

User interface changes

Reset button moved to the correct part of the form, submit button shows the correct value.

API changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

damiankloip’s picture

Issue summary: View changes
damiankloip’s picture

Issue summary: View changes
damiankloip’s picture

damiankloip’s picture

Issue summary: View changes
damiankloip’s picture

damiankloip’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, vdc.submit-label-PASS.patch, failed testing.

The last submitted patch, vdc.submit-label-FAIL.patch, failed testing.

damiankloip’s picture

Status: Needs work » Needs review
FileSize
7.15 KB
1.51 KB

Use the Views class..

damiankloip’s picture

vdc.submit-label-FAIL.patch queued for re-testing.

damiankloip’s picture

vdc.submit-label-PASS.patch queued for re-testing.

The last submitted patch, vdc.submit-label-FAIL.patch, failed testing.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/exposed_form/ExposedFormPluginBase.php
@@ -181,8 +181,19 @@ public function preExecute() { }
+   * @param $form
+   *   The form build array. Passed by reference.
+   * @param $form_state
+   *   The form state. Passed by reference.

I thought we don't have to document that, but I don't care.

damiankloip’s picture

Thanks! I thought better to document anyway, as it's not a form alter in the regular place.

damiankloip’s picture

FileSize
7.16 KB
745 bytes
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

The last submitted patch, 15: 2149751-15.patch, failed testing.

damiankloip’s picture

15: 2149751-15.patch queued for re-testing.

The last submitted patch, 15: 2149751-15.patch, failed testing.

Status: Fixed » Closed (fixed)

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