Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit 76bd780

Browse files
committed
Fix #1107
1 parent 37742c8 commit 76bd780

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

module/Rubedo/src/Rubedo/Elastic/DataSearch.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,9 @@ public function search(array $params, $option = 'all', $withSummary = true)
12901290
$temp ['ranges'] [$key] ['label'] = isset($timeLabel [$value ['from']]) ? $timeLabel [$value ['from']] : 'Time label';
12911291
$temp ['ranges'] [$key] ['count'] = $rangeCount;
12921292
unset( $temp ['ranges'] [$key] ['doc_count']);
1293-
}
1293+
} else {
1294+
unset($temp ['ranges'] [$key] );
1295+
}
12941296
}
12951297
} else {
12961298
$renderFacet = false;
@@ -1316,6 +1318,8 @@ public function search(array $params, $option = 'all', $withSummary = true)
13161318
$temp ['ranges'] [$key] ['label'] = $this->getRangeLabel($from,$to);
13171319
$temp ['ranges'] [$key] ['count'] = $rangeCount;
13181320
unset( $temp ['ranges'] [$key] ['doc_count']);
1321+
} else {
1322+
unset($temp ['ranges'] [$key] );
13191323
}
13201324
}
13211325
} else {
@@ -1342,6 +1346,8 @@ public function search(array $params, $option = 'all', $withSummary = true)
13421346
$temp ['ranges'] [$key] ['label'] = 'Yes';
13431347
$temp ['ranges'] [$key] ['count'] = $rangeCount;
13441348
unset( $temp ['ranges'] [$key] ['doc_count']);
1349+
} else {
1350+
unset($temp ['ranges'] [$key] );
13451351
}
13461352
}
13471353
} else {

0 commit comments

Comments
 (0)