[FIX] web: mockReadGroup does not mix 'false' and false

An implicit call to toString was made for the
groupbys values in the function used to
group records in _mockReadGroup.
Consequently, the values false and 'false' were
mixed and the corresponding records put in the
same group.
This commit is contained in:
Mathieu Duckerts-Antoine
2019-08-02 18:34:18 +00:00
parent 5894df57d3
commit 1ef258f6cb
@@ -940,7 +940,7 @@ var MockServer = Class.extend({
if (fields[fieldName].type === 'date') {
value += formatValue(groupByField, record[fieldName]);
} else {
value += record[groupByField];
value += JSON.stringify(record[groupByField]);
}
});
return value;