Use length to test Group emptiness

jQuery.isEmptyObject does not consider Group without records as empty.

issue6800
review35651002
This commit is contained in:
Cédric Krier committed 2017-10-02 16:01:48 +02:00
1 parent d832eb0b9a
commit dfb48edd1d
1 file changed
+2 -3
+2 -3
View File
@@ -753,9 +753,8 @@
selected = selected || [];
expanded = expanded || [];
var update_expander = function() {
if (jQuery.isEmptyObject(
this.record.field_get_client(
this.children_field))) {
if (!this.record.field_get_client(
this.children_field).length) {
this.expander.css('visibility', 'hidden');
}
};