From 26fe08d8fb9545dba85bf7437e36c3764dee87af Mon Sep 17 00:00:00 2001
From: webchick <webchick@24967.no-reply.drupal.org>
Date: Tue, 22 Jan 2013 17:23:19 -0800
Subject: [PATCH] Issue #1832872 follow-up by dawehner: Fixed broken Views UI
 search box/filtering.

---
 core/modules/views/views_ui/admin.inc         | 18 +++++++++---------
 core/modules/views/views_ui/js/views-admin.js |  2 +-
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/core/modules/views/views_ui/admin.inc b/core/modules/views/views_ui/admin.inc
index e6215af134a3..9e9f1bad303d 100644
--- a/core/modules/views/views_ui/admin.inc
+++ b/core/modules/views/views_ui/admin.inc
@@ -418,9 +418,16 @@ function views_ui_standard_display_dropdown(&$form, &$form_state, $section) {
   $displays = $executable->displayHandlers;
   $current_display = $executable->display_handler;
 
-  // Add the "2 of 3" progress indicator.
-  // @TODO: Move this to a separate function if it's needed on any forms that
+  // @todo Move this to a separate function if it's needed on any forms that
   // don't have the display dropdown.
+  $form['override'] = array(
+    '#prefix' => '<div class="views-override clearfix container-inline">',
+    '#suffix' => '</div>',
+    '#weight' => -1000,
+    '#tree' => TRUE,
+  );
+
+  // Add the "2 of 3" progress indicator.
   if ($form_progress = $view->getFormProgress()) {
     $form['progress']['#markup'] = '<div id="views-progress-indicator">' . t('@current of @total', array('@current' => $form_progress['current'], '@total' => $form_progress['total'])) . '</div>';
     $form['progress']['#weight'] = -1001;
@@ -449,12 +456,6 @@ function views_ui_standard_display_dropdown(&$form, &$form_state, $section) {
     $display_dropdown['default_revert'] = t('Revert to default');
   }
 
-  $form['override'] = array(
-    '#prefix' => '<div class="views-override clearfix container-inline">',
-    '#suffix' => '</div>',
-    '#weight' => -1000,
-    '#tree' => TRUE,
-  );
   $form['override']['dropdown'] = array(
     '#type' => 'select',
     '#title' => t('For'), // @TODO: Translators may need more context than this.
@@ -1216,7 +1217,6 @@ function views_ui_add_item_form($form, &$form_state) {
   $type = $form_state['type'];
 
   $form = array(
-    'override' => array(),
     'options' => array(
       '#theme_wrappers' => array('container'),
       '#attributes' => array('class' => array('scroll')),
diff --git a/core/modules/views/views_ui/js/views-admin.js b/core/modules/views/views_ui/js/views-admin.js
index db5c2adf1dbf..c6f380d5c4b0 100644
--- a/core/modules/views/views_ui/js/views-admin.js
+++ b/core/modules/views/views_ui/js/views-admin.js
@@ -345,7 +345,7 @@ Drupal.viewsUi.OptionsSearch = function ($form) {
 
   this.$form = $form;
   // Add a keyup handler to the search box.
-  this.$searchBox = this.$form.find('#edit-options-search');
+  this.$searchBox = this.$form.find('#edit-override-controls-options-search');
   this.$searchBox.keyup(jQuery.proxy(this.handleKeyup, this));
   // Get a list of option labels and their corresponding divs and maintain it
   // in memory, so we have as little overhead as possible at keyup time.
-- 
GitLab