Index: trunk/extensions/SolrStore/SolrTalker.php |
— | — | @@ -98,6 +98,7 @@ |
99 | 99 | $dynamicBase = substr( $field->str[2], 1 ); // Get the dynamic base of the field eg. "*_dtmax" |
100 | 100 | $newField = str_replace( $dynamicBase, '', $field['name'] ); // Get the field name without the dynamicbase |
101 | 101 | if ( strcasecmp( str_replace( ' ', '_', $newField ), $searchField ) == 0 ) { // Replace all spaces with underscore for better matching |
| 102 | + $result = trim($field['name']); |
102 | 103 | if ( stripos( $dynamicBase, 'max' ) && stripos( $sort, 'desc' ) ) { |
103 | 104 | // For descending sorting use the MaX value field |
104 | 105 | continue 2; // we got the right field, stop it! |