diff --git a/core/modules/locale/lib/Drupal/locale/Form/TranslateFilterForm.php b/core/modules/locale/lib/Drupal/locale/Form/TranslateFilterForm.php index c6a36f2..30a5497 100644 --- a/core/modules/locale/lib/Drupal/locale/Form/TranslateFilterForm.php +++ b/core/modules/locale/lib/Drupal/locale/Form/TranslateFilterForm.php @@ -74,6 +74,7 @@ public function buildForm(array $form, array &$form_state) { $form['filters']['actions']['reset'] = array( '#type' => 'submit', '#value' => $this->t('Reset'), + '#submit' => array(array($this, 'resetForm')), ); } @@ -97,7 +98,6 @@ public function submitForm(array &$form, array &$form_state) { * {@inheritdoc} */ public function resetForm(array &$form, array &$form_state) { - $filters = $this->translateFilters(); $_SESSION['locale_translate_filter'] = array(); $form_state['redirect'] = 'admin/config/regional/translate'; }