Correctly test for empty selected list

issue7818
review54411002
This commit is contained in:
Cédric Krier
2018-10-31 18:34:37 +01:00
parent 3a0e036cff
commit 4af35ca4f2
+1 -1
View File
@@ -318,7 +318,7 @@
},
display: function(selected, expanded) {
var current_record = this.screen.current_record;
if (!selected) {
if (jQuery.isEmptyObject(selected)) {
selected = this.get_selected_paths();
if (current_record) {
var current_path = current_record.get_path(this.screen.group);