Commit 2e1b1c51 authored by Francesco Lucchi's avatar Francesco Lucchi
Browse files

Fix filtering of realtime values

parent fac643e8
......@@ -142,7 +142,7 @@ angular.module('cockpitModule')
}
if(column){
for(var i=1; i<$scope.datasetRecords.rows.length; i++){
for(var i=0; i<$scope.datasetRecords.rows.length; i++){
var dateString = $scope.datasetRecords.rows[i][column];
var dateMillis = sbiModule_dateServices.getDateFromFormat(dateString.split('.')[0], dateFormat).getTime();
if(startMillis <= dateMillis && dateMillis < endMillis){
......
......@@ -82,7 +82,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
cockpitModule_properties.DS_IN_CACHE.push(dataset.label);
}
if(newValue != oldValue && newValue.length > 0){
scope.itemList = scope.filterDataset(scope.itemList,scope.reformatSelections(newValue));
scope.itemList = scope.filterDataset(angular.copy(scope.savedRows),scope.reformatSelections(newValue));
}else{
angular.copy(scope.savedRows, scope.itemList);
}
......
Supports Markdown
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