From 79fce9067e2a17169128f7183311fe2fb55b2184 Mon Sep 17 00:00:00 2001
From: Dakku <dakku@97634.no-reply.drupal.org>
Date: Mon, 18 Apr 2016 19:24:33 +0100
Subject: [PATCH] 2708639

---
 search_api.theme.inc         | 8 +-------
 src/Form/IndexFieldsForm.php | 9 +++++++++
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/search_api.theme.inc b/search_api.theme.inc
index 6793c7f..11eb7f3 100644
--- a/search_api.theme.inc
+++ b/search_api.theme.inc
@@ -25,13 +25,7 @@ use Drupal\search_api\Utility;
  */
 function theme_search_api_admin_fields_table($variables) {
   $form = $variables['element'];
-  $header = array(
-    t('Field'),
-    t('Machine name'),
-    t('Type'),
-    t('Boost'),
-    t('Remove'),
-  );
+  $header = $form['#header'];
 
   $rows = array();
   if (!empty($form['fields'])) {
diff --git a/src/Form/IndexFieldsForm.php b/src/Form/IndexFieldsForm.php
index d4d41ee..bd6bdf0 100644
--- a/src/Form/IndexFieldsForm.php
+++ b/src/Form/IndexFieldsForm.php
@@ -303,11 +303,20 @@ class IndexFieldsForm extends EntityForm {
     );
     $boosts = array_combine($boost_values, $boost_values);
 
+    $header = array(
+      t('Field'),
+      t('Machine name'),
+      t('Type'),
+      t('Boost'),
+      t('Remove'),
+    );
+
     $build = array(
       '#type' => 'details',
       '#open' => TRUE,
       '#theme' => 'search_api_admin_fields_table',
       '#parents' => array(),
+      '#header' => $header,
     );
 
     foreach ($fields as $key => $field) {
-- 
1.7.11.1

