Commit 4c742585 authored by Mathijs Koenraadt's avatar Mathijs Koenraadt

Issue #2202093 by Ravenight: sort saving issue.

parent 2134fd15
......@@ -117,15 +117,6 @@ function search_api_sorts_index_select(array $form, array &$form_state, SearchAp
}
}
// Order fields according to sorts weight.
$new_fields = array();
foreach ($sorts as $key => $sort) {
if (!empty($fields[$key])) {
$new_fields[$key] = $fields[$key];
}
}
$fields = $new_fields;
foreach ($fields as $key => $field) {
if (!$field['indexed']) {
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment