ixed influxdb issue with raw query that caused wrong value column detection (Fixes #504)

This commit is contained in:
Torkel Ödegaard 2014-06-22 12:01:41 +02:00
parent a3aca0bae4
commit 551771c6cf
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ vNext
- Fixes regex InfluxDB queries intoduced in 1.6.0 (PR #500)
- Bug in when using % sign in legends (aliases), fixed by removing url decoding of metric names (Fixes #506)
- Series names and column name typeahead cache fix (Fixes #522)
- Fixed influxdb issue with raw query that caused wrong value column detection (Fixes #504)
# 1.6.0 (2014-06-16)

View File

@ -43,7 +43,7 @@ function (angular, _, kbn) {
var groupByIndex = lowerCaseQueryElements.indexOf("group");
var orderIndex = lowerCaseQueryElements.indexOf("order");
if (lowerCaseQueryElements[1].indexOf(',')) {
if (lowerCaseQueryElements[1].indexOf(',') !== -1) {
groupByField = lowerCaseQueryElements[1].replace(',', '');
}